Package com.geodesk.feature
Class Filters
java.lang.Object
com.geodesk.feature.Filters
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Filter
Creates a `Filter` that accept features that have at least one common node with the given `Feature`.static Filter
connectedTo
(Geometry geom) Creates a `Filter` that accept features that have at least one common vertex with the given `Geometry`.static Filter
containsLonLat
(double lon, double lat) static Filter
static Filter
static Filter
intersects
(Geometry geom) static Filter
intersects
(PreparedGeometry prepared) static Filter
maxMetersFrom
(double distance, Feature feature) Creates a `Filter` that accept features that lie within a given distance from another `Feature`.static Filter
maxMetersFrom
(double distance, Geometry geom) Creates a `Filter` that accept features that lie within a given distance from a `Geometry`.static Filter
maxMetersFromLonLat
(double distance, double lon, double lat) Creates a `Filter` that accept features whose closest point lies within a given radius.static Filter
maxMetersFromXY
(double distance, int x, int y) Creates a `Filter` that accept features whose closest point lies within a given radius.static Filter
static Filter
static Filter
within
(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
-