public class ClosestPointIndex extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ClosestPointIndex.Result |
Constructor and Description |
---|
ClosestPointIndex() |
Modifier and Type | Method and Description |
---|---|
void |
insert(int id,
com.vividsolutions.jts.geom.Geometry geometry)
Insert a geometry into the index and associate it with a particular id.
|
List<ClosestPointIndex.Result> |
query(com.vividsolutions.jts.geom.Geometry query,
int maxNeighbors)
Return the closest points to the specified point.
|
int |
size() |
public void insert(int id, com.vividsolutions.jts.geom.Geometry geometry)
id
- geometry
- public List<ClosestPointIndex.Result> query(com.vividsolutions.jts.geom.Geometry query, int maxNeighbors)
query
- maxNeighbors
- public int size()
Copyright © 2015. All rights reserved.