public interface SpatialDistanceMetric
Modifier and Type | Interface and Description |
---|---|
static class |
SpatialDistanceMetric.Neighbor |
Modifier and Type | Method and Description |
---|---|
double |
distance(com.vividsolutions.jts.geom.Geometry g1,
com.vividsolutions.jts.geom.Geometry g2)
Calculates the distance between two geometries.
|
float[][] |
distance(List<com.vividsolutions.jts.geom.Geometry> geometries)
Returns the distance matrix between the specified geometries.
|
float[][] |
distance(List<com.vividsolutions.jts.geom.Geometry> rowGeometries,
List<com.vividsolutions.jts.geom.Geometry> colGeometries)
Returns the distance matrix between the specified geometries.
|
void |
enableCache(boolean enable)
Build an efficient in-memory cache if helpful.
|
String |
getName()
Describes the spatial distance metric.
|
List<SpatialDistanceMetric.Neighbor> |
getNeighbors(com.vividsolutions.jts.geom.Geometry g,
int maxNeighbors)
Returns the closest points to a particular geometry.
|
List<SpatialDistanceMetric.Neighbor> |
getNeighbors(com.vividsolutions.jts.geom.Geometry g,
int maxNeighbors,
double maxDistance)
Returns the closest points to a particular geometry, thresholded at some cutoff.
|
void |
setValidConcepts(gnu.trove.set.TIntSet concepts) |
void setValidConcepts(gnu.trove.set.TIntSet concepts)
void enableCache(boolean enable) throws DaoException
DaoException
String getName()
double distance(com.vividsolutions.jts.geom.Geometry g1, com.vividsolutions.jts.geom.Geometry g2)
g1
- g2
- float[][] distance(List<com.vividsolutions.jts.geom.Geometry> rowGeometries, List<com.vividsolutions.jts.geom.Geometry> colGeometries)
float[][] distance(List<com.vividsolutions.jts.geom.Geometry> geometries)
List<SpatialDistanceMetric.Neighbor> getNeighbors(com.vividsolutions.jts.geom.Geometry g, int maxNeighbors)
g
- maxNeighbors
- List<SpatialDistanceMetric.Neighbor> getNeighbors(com.vividsolutions.jts.geom.Geometry g, int maxNeighbors, double maxDistance)
g
- maxNeighbors
- maxDistance
- Copyright © 2014. All rights reserved.