Package com.geodesk.feature
Class Filters
java.lang.Object
com.geodesk.feature.Filters
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FilterCreates a `Filter` that accept features that have at least one common node with the given `Feature`.static FilterconnectedTo(Geometry geom) Creates a `Filter` that accept features that have at least one common vertex with the given `Geometry`.static FiltercontainsLonLat(double lon, double lat) static Filterstatic Filterstatic Filterintersects(Geometry geom) static Filterintersects(PreparedGeometry prepared) static FiltermaxMetersFrom(double distance, Feature feature) Creates a `Filter` that accept features that lie within a given distance from another `Feature`.static FiltermaxMetersFrom(double distance, Geometry geom) Creates a `Filter` that accept features that lie within a given distance from a `Geometry`.static FiltermaxMetersFromLonLat(double distance, double lon, double lat) Creates a `Filter` that accept features whose closest point lies within a given radius.static FiltermaxMetersFromXY(double distance, int x, int y) Creates a `Filter` that accept features whose closest point lies within a given radius.static Filterstatic Filterstatic Filterwithin(PreparedGeometry prepared)
-
Constructor Details
-
Filters
public Filters()
-
-
Method Details
-
within
-
within
-
within
-
intersects
-
intersects
-
intersects
-
crosses
-
connectedTo
Creates a `Filter` that accept features that have at least one common node with the given `Feature`.- Parameters:
f- the `Feature` whose nodes to check against- Returns:
-
connectedTo
Creates a `Filter` that accept features that have at least one common vertex with the given `Geometry`. Coordinates of the `Geometry` are rounded to integers.- Parameters:
geom- the `Geometry` whose vertexes to check against- Returns:
-
maxMetersFromXY
Creates a `Filter` that accept features whose closest point lies within a given radius.- Parameters:
distance- the maximum distance (in meters)x- the X coordinate of the center pointy- the Y coordinate of the center point- Returns:
-
maxMetersFromLonLat
Creates a `Filter` that accept features whose closest point lies within a given radius.- Parameters:
distance- the maximum distance (in meters)lon- the longitude of the center pointlat- the latitude of the center point- Returns:
-
maxMetersFrom
Creates a `Filter` that accept features that lie within a given distance from a `Geometry`. The Filter measures the distance between the closest points of the Geometry and the candidate Feature.- Parameters:
distance- the maximum distance (in meters)geom- the Geometry from which to measure- Returns:
-
maxMetersFrom
Creates a `Filter` that accept features that lie within a given distance from another `Feature`. The Filter measures the distance between the closest points of the features.- Parameters:
distance- the maximum distance (in meters)feature- the Feature from which to measure- Returns:
-
containsLonLat
-