public final class TurfJoins
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
inside(com.mapbox.geojson.Point point,
com.mapbox.geojson.MultiPolygon multiPolygon)
Takes a
Point and a MultiPolygon and determines if the point resides inside
the polygon. |
static boolean |
inside(com.mapbox.geojson.Point point,
com.mapbox.geojson.Polygon polygon)
Takes a
Point and a Polygon and determines if the point resides inside the
polygon. |
static com.mapbox.geojson.FeatureCollection |
pointsWithinPolygon(com.mapbox.geojson.FeatureCollection points,
com.mapbox.geojson.FeatureCollection polygons)
Takes a
FeatureCollection of Point and a FeatureCollection of
Polygon and returns the points that fall within the polygons. |
public static boolean inside(com.mapbox.geojson.Point point, com.mapbox.geojson.Polygon polygon)
Point
and a Polygon
and determines if the point resides inside the
polygon. The polygon can be convex or concave. The function accounts for holes.point
- which you'd like to check if inside the polygonpolygon
- which you'd like to check if the points insidepublic static boolean inside(com.mapbox.geojson.Point point, com.mapbox.geojson.MultiPolygon multiPolygon)
Point
and a MultiPolygon
and determines if the point resides inside
the polygon. The polygon can be convex or concave. The function accounts for holes.point
- which you'd like to check if inside the polygonmultiPolygon
- which you'd like to check if the points insidepublic static com.mapbox.geojson.FeatureCollection pointsWithinPolygon(com.mapbox.geojson.FeatureCollection points, com.mapbox.geojson.FeatureCollection polygons)
FeatureCollection
of Point
and a FeatureCollection
of
Polygon
and returns the points that fall within the polygons.points
- input points.polygons
- input polygons.