public class TurfJoins extends Object
Constructor and Description |
---|
TurfJoins() |
Modifier and Type | Method and Description |
---|---|
static boolean |
inside(com.mapbox.services.commons.geojson.Point point,
com.mapbox.services.commons.geojson.MultiPolygon polygon)
Takes a
Point and a MultiPolygon and determines if the point resides inside
the polygon. |
static boolean |
inside(com.mapbox.services.commons.geojson.Point point,
com.mapbox.services.commons.geojson.Polygon polygon)
Takes a
Point and a Polygon and determines if the point resides inside the
polygon. |
static boolean |
inside(com.mapbox.services.commons.models.Position point,
List<com.mapbox.services.commons.models.Position> polygon)
Takes a
Position and a List of Positions making up a polygon and determines if the
point resides inside the polygon. |
public static boolean inside(com.mapbox.services.commons.models.Position point, List<com.mapbox.services.commons.models.Position> polygon) throws TurfException
Position
and a List of Positions making up a polygon and determines if the
point resides inside the polygon. The polygon can be convex or concave. The function accounts
for holes.point
- input position.polygon
- input list of positions making up the polygon.TurfException
- Signals that a Turf exception of some sort has occurred.public static boolean inside(com.mapbox.services.commons.geojson.Point point, com.mapbox.services.commons.geojson.Polygon polygon) throws TurfException
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
- input point.polygon
- input polygon.TurfException
- Signals that a Turf exception of some sort has occurred.public static boolean inside(com.mapbox.services.commons.geojson.Point point, com.mapbox.services.commons.geojson.MultiPolygon polygon) throws TurfException
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
- input point.polygon
- input multipolygon.TurfException
- Signals that a Turf exception of some sort has occurred.© 2015–2016 Mapbox. All rights reserved.