Package repast.simphony.query.space.gis
Class GeographyWithin<T>
- java.lang.Object
-
- repast.simphony.query.space.gis.GeographyWithin<T>
-
- All Implemented Interfaces:
Query<T>
public class GeographyWithin<T> extends Object implements 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, seeGeometry
.buffer()- Author:
- Nick Collier, Eric Tatara
-
-
Constructor Summary
Constructors Constructor Description GeographyWithin(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<T>
query()
Returns the result of the query.Iterable<T>
query(Iterable<T> set)
Returns an iterable over the objects that are the result of the query and are in the passed in iterable.
-
-
-
Constructor Detail
-
GeographyWithin
public GeographyWithin(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.- 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 Detail
-