|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.vividsolutions.jts.index.PreparedGeometryIndex
public class PreparedGeometryIndex
An index for Geometrys
which provides efficient execution of
queries involving spatial predicates.
Query methods return the Geometry items
in the index which have the specified
relationship to the query Geometry.
Internally the index uses PreparedGeometrys
to provide performant evaluation of spatial predicates.
A common need is to maintain identifying information for the Geometrys in the index. This can be accomplished by either
HashMap
| Constructor Summary | |
|---|---|
PreparedGeometryIndex()
Creates a new index object. |
|
| Method Summary | |
|---|---|
void |
insert(java.util.Collection geoms)
Inserts a collection of Geometrys into the index. |
void |
insert(Geometry geom)
Inserts a Geometry into the index. |
void |
insertElements(GeometryCollection geomColl)
Inserts the atomic elements of a GeometryCollection into the index. |
java.util.List |
query(Envelope env)
Queries the index to find all items which might interact with the query target. |
java.util.List |
queryContains(Geometry g)
Queries the index to find all Geometrys which
contain the query geometry. |
java.util.List |
queryCoveredBy(Geometry g)
Queries the index to find all Geometrys which
are coveredBy the query geometry. |
java.util.List |
queryCovers(Geometry g)
Queries the index to find all Geometrys which
cover the query geometry. |
java.util.List |
queryIntersects(Geometry g)
Queries the index to find all Geometrys which
intersect the query geometry. |
java.util.List |
queryWithin(Geometry g)
Queries the index to find all Geometrys which
are within the query geometry. |
void |
remove(Geometry geom)
Removes the given Geometry from the index. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PreparedGeometryIndex()
| Method Detail |
|---|
public void insertElements(GeometryCollection geomColl)
GeometryCollection into the index.
geomColl - a collection of Geometrys to insertpublic void insert(java.util.Collection geoms)
Geometrys into the index.
geoms - a collection of Geometrys to insertpublic void insert(Geometry geom)
Geometry into the index.
geom - a collection of Geometrys to insertpublic void remove(Geometry geom)
Geometry from the index.
geom - the Geometry to removepublic java.util.List query(Envelope env)
env - the target envelope to query
public java.util.List queryContains(Geometry g)
Geometrys which
contain the query geometry.
g -
public java.util.List queryCoveredBy(Geometry g)
Geometrys which
are coveredBy the query geometry.
g -
public java.util.List queryCovers(Geometry g)
Geometrys which
cover the query geometry.
g -
public java.util.List queryIntersects(Geometry g)
Geometrys which
intersect the query geometry.
g -
public java.util.List queryWithin(Geometry g)
Geometrys which
are within the query geometry.
g -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||