T - the type of values to be associated to geometries.
public class GeometryTesselationMap<T> extends Object
GeometryTesselation that allows a value to be mapped to each added geometry.
| Constructor and Description |
|---|
GeometryTesselationMap()
|
GeometryTesselationMap(boolean usePreparedGeometries)
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Geometry
Add
geom to the tesselation and map
thing to this geometry.
|
Set |
test(Point
Return the set of values, whose associated geometries cover the given point.
|
Set |
testForIntersections(Geometry
Return the set of values, whose associated geometries intersect the given geometry.
|
Collection |
values()
|
public GeometryTesselationMap()
public GeometryTesselationMap(boolean usePreparedGeometries)
public void add(Geometrygeom, T thing)
geom to the tesselation and map
thing to this geometry. Thus a test for a point covered by
geom will return a set containing
thing.
geom - the geometry to register
thing for.
thing - the value associated to
geom.
public Set<T> test(Point point)
point - the point to test for.
public Set<T> testForIntersections(Geometry geometry)
geometry - the geometry to test for.
public Collection<T> values()