Package repast.simphony.query.space.gis
Class GeographyWithin<T>
java.lang.Object
repast.simphony.query.space.gis.GeographyWithin<T>
- All Implemented Interfaces:
Query<T>
Query that returns items in a geography that are some specified distance from
another item or a geometry. The distance is either calculated from the
center of a point, or from the buffer zone which is created around the line
or polygon feature, see
Geometry
.buffer()- Author:
- Nick Collier, Eric Tatara
-
Constructor Summary
ConstructorDescriptionGeographyWithin
(Geography geography, double distance, Object sourceObject) Creates GeographyWithinQuery that returns items in a specified geography that are within the specified distance from the centroid of the source object.GeographyWithin
(Geography geography, double distance, javax.measure.Unit units, Object sourceObject) Creates GeographyWithinQuery that returns items in a specified geography that are within the specified distance from the centroid of the source object.GeographyWithin
(Geography geography, double distance, javax.measure.Unit units, org.locationtech.jts.geom.Geometry location) Creates GeographyWithinQuery that returns items in a specified geography that are within the specified distance from the centroid of the source object.GeographyWithin
(Geography geography, double distance, org.locationtech.jts.geom.Geometry location) Creates GeographyWithinQuery that returns items in a specified geography that are within the specified distance from the centroid of the specified location. -
Method Summary
-
Constructor Details
-
GeographyWithin
Creates GeographyWithinQuery that returns items in a specified geography that are within the specified distance from the centroid of the source object.- Parameters:
geography
- the containing geographydistance
- the distance in METERSsourceObject
- the object whose neighbors we want
-
GeographyWithin
public GeographyWithin(Geography geography, double distance, javax.measure.Unit units, Object sourceObject) Creates GeographyWithinQuery that returns items in a specified geography that are within the specified distance from the centroid of the source object.- Parameters:
geography
- the containing geographydistance
- the distance in the specified unitsunits
- the distance units. These must be convertable to meters.sourceObject
- the object whose neighbors we want
-
GeographyWithin
public GeographyWithin(Geography geography, double distance, javax.measure.Unit units, org.locationtech.jts.geom.Geometry location) Creates GeographyWithinQuery that returns items in a specified geography that are within the specified distance from the centroid of the source object.- Parameters:
geography
- the containing geographydistance
- the distance in the specified unitsunits
- the distance units. These must be convertable to meters.location
- the source location whose surrounding neighbors we want
-
GeographyWithin
public GeographyWithin(Geography geography, double distance, org.locationtech.jts.geom.Geometry location) Creates GeographyWithinQuery that returns items in a specified geography that are within the specified distance from the centroid of the specified location.- Parameters:
geography
- the containing geographydistance
- the distance in METERSlocation
- the source location whose surrounding neighbors we want
-
-
Method Details
-
query
Returns the result of the query. -
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.
-