Package repast.simphony.query.space.gis
Class IntersectsQuery<T>
java.lang.Object
repast.simphony.query.space.gis.AbstractGeometryQuery<T>
repast.simphony.query.space.gis.IntersectsQuery<T>
- All Implemented Interfaces:
Query<T>
Query that determines what objects are intersected by a geometry.
-
Field Summary
Fields inherited from class repast.simphony.query.space.gis.AbstractGeometryQuery
geography, geom, predicate, sourceObject
-
Constructor Summary
ConstructorDescriptionIntersectsQuery
(Geography<T> geography, org.locationtech.jts.geom.Geometry geom) Creates a IntersectsQuery that will query the specified geography for objects that are intersected by the specified geometry.IntersectsQuery
(Geography<T> geography, T sourceObject) Creates an IntersectsQuery that will query the specified geography for objects that are intersected by the geometry of the specified object. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.commons.collections15.Predicate<T>
Creates a predicate that tests for intersection.Methods inherited from class repast.simphony.query.space.gis.AbstractGeometryQuery
query, query
-
Constructor Details
-
IntersectsQuery
Creates an IntersectsQuery that will query the specified geography for objects that are intersected by the geometry of the specified object.- Parameters:
geography
- the geography to querysourceObject
- the object whose geometry is intersected
-
IntersectsQuery
Creates a IntersectsQuery that will query the specified geography for objects that are intersected by the specified geometry.- Parameters:
geography
- the geography to querygeom
- the intersected geometry
-
-
Method Details
-
createPredicate
Creates a predicate that tests for intersection.- Specified by:
createPredicate
in classAbstractGeometryQuery<T>
- Returns:
- a predicate that tests for intersection.
-