Package repast.simphony.query.space.gis
Class AbstractGeometryQuery<T>
java.lang.Object
repast.simphony.query.space.gis.AbstractGeometryQuery<T>
- All Implemented Interfaces:
Query<T>
- Direct Known Subclasses:
ContainsQuery
,IntersectsQuery
,TouchesQuery
,WithinQuery
Abstract implementation of geometry based queries. This can be used
as the basis for queries can performed on the basis of intersection
with a source object's geometry.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAbstractGeometryQuery
(Geography<T> geography, org.locationtech.jts.geom.Geometry geom) AbstractGeometryQuery
(Geography<T> geography, T sourceObject) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.apache.commons.collections15.Predicate<T>
Create a predicate that will be used to test objects that intersect the source object.query()
Returns the result of the query.Returns an iterable over the objects that are the result of the query and are in the passed in iterable.
-
Field Details
-
geography
-
geom
protected org.locationtech.jts.geom.Geometry geom -
predicate
-
sourceObject
-
-
Constructor Details
-
AbstractGeometryQuery
-
AbstractGeometryQuery
-
-
Method Details
-
createPredicate
Create a predicate that will be used to test objects that intersect the source object. Those that pass the predicate evaluate will be included in the query results.- Returns:
- Create a predicate that will be used to test objects that intersect the source object.
-
query
Returns an iterable over the objects that are the result of the query and are in the passed in iterable. This allows queries to be chained together where the result of one query is passed into another. -
query
Returns the result of the query.
-