public final class TurfMeta
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<com.mapbox.geojson.Point> |
coordAll(com.mapbox.geojson.Feature feature,
boolean excludeWrapCoord)
Get all coordinates from a
Feature object, returning a List of Point
objects. |
static java.util.List<com.mapbox.geojson.Point> |
coordAll(com.mapbox.geojson.FeatureCollection featureCollection,
boolean excludeWrapCoord)
Get all coordinates from a
FeatureCollection object, returning a
List of Point objects. |
static java.util.List<com.mapbox.geojson.Point> |
coordAll(com.mapbox.geojson.LineString lineString)
Get all coordinates from a
LineString object, returning a List of Point
objects. |
static java.util.List<com.mapbox.geojson.Point> |
coordAll(com.mapbox.geojson.MultiLineString multiLineString)
Get all coordinates from a
MultiLineString object, returning
a List of Point objects. |
static java.util.List<com.mapbox.geojson.Point> |
coordAll(com.mapbox.geojson.MultiPoint multiPoint)
Get all coordinates from a
MultiPoint object, returning a List of Point
objects. |
static java.util.List<com.mapbox.geojson.Point> |
coordAll(com.mapbox.geojson.MultiPolygon multiPolygon,
boolean excludeWrapCoord)
Get all coordinates from a
MultiPolygon object, returning a List of Point
objects. |
static java.util.List<com.mapbox.geojson.Point> |
coordAll(com.mapbox.geojson.Point point)
Get all coordinates from a
Point object, returning a List of Point objects. |
static java.util.List<com.mapbox.geojson.Point> |
coordAll(com.mapbox.geojson.Polygon polygon,
boolean excludeWrapCoord)
Get all coordinates from a
Polygon object, returning a List of Point objects. |
static com.mapbox.geojson.Point |
getCoord(com.mapbox.geojson.Feature obj)
Unwrap a coordinate
Point from a Feature with a Point geometry. |
@NonNull
public static java.util.List<com.mapbox.geojson.Point> coordAll(@NonNull
com.mapbox.geojson.Point point)
Point object, returning a List of Point objects.
If you have a geometry collection, you need to break it down to individual geometry objects
before using coordAll(com.mapbox.geojson.Point).point - any Point objectList made up of Points@NonNull
public static java.util.List<com.mapbox.geojson.Point> coordAll(@NonNull
com.mapbox.geojson.MultiPoint multiPoint)
MultiPoint object, returning a List of Point
objects. If you have a geometry collection, you need to break it down to individual geometry
objects before using coordAll(com.mapbox.geojson.Point).multiPoint - any MultiPoint objectList made up of Points@NonNull
public static java.util.List<com.mapbox.geojson.Point> coordAll(@NonNull
com.mapbox.geojson.LineString lineString)
LineString object, returning a List of Point
objects. If you have a geometry collection, you need to break it down to individual geometry
objects before using coordAll(com.mapbox.geojson.Point).lineString - any LineString objectList made up of Points@NonNull
public static java.util.List<com.mapbox.geojson.Point> coordAll(@NonNull
com.mapbox.geojson.Polygon polygon,
@NonNull
boolean excludeWrapCoord)
Polygon object, returning a List of Point objects.
If you have a geometry collection, you need to break it down to individual geometry objects
before using coordAll(com.mapbox.geojson.Point).polygon - any Polygon objectexcludeWrapCoord - whether or not to include the final coordinate of LinearRings that
wraps the ring in its iterationList made up of Points@NonNull
public static java.util.List<com.mapbox.geojson.Point> coordAll(@NonNull
com.mapbox.geojson.MultiLineString multiLineString)
MultiLineString object, returning
a List of Point objects. If you have a geometry collection, you
need to break it down to individual geometry objects before using
coordAll(com.mapbox.geojson.Point).multiLineString - any MultiLineString objectList made up of Points@NonNull
public static java.util.List<com.mapbox.geojson.Point> coordAll(@NonNull
com.mapbox.geojson.MultiPolygon multiPolygon,
@NonNull
boolean excludeWrapCoord)
MultiPolygon object, returning a List of Point
objects. If you have a geometry collection, you need to break it down to individual geometry
objects before using coordAll(com.mapbox.geojson.Point).multiPolygon - any MultiPolygon objectexcludeWrapCoord - whether or not to include the final coordinate of LinearRings that
wraps the ring in its iteration. Used to handle Polygon and
MultiPolygon geometries.List made up of Points@NonNull
public static java.util.List<com.mapbox.geojson.Point> coordAll(@NonNull
com.mapbox.geojson.Feature feature,
@NonNull
boolean excludeWrapCoord)
Feature object, returning a List of Point
objects.feature - the Feature that you'd like to extract the Points from.excludeWrapCoord - whether or not to include the final coordinate of LinearRings that
wraps the ring in its iteration. Used if the Feature
passed through the method is a Polygon or MultiPolygon
geometry.List made up of Points@NonNull
public static java.util.List<com.mapbox.geojson.Point> coordAll(@NonNull
com.mapbox.geojson.FeatureCollection featureCollection,
@NonNull
boolean excludeWrapCoord)
FeatureCollection object, returning a
List of Point objects.featureCollection - the FeatureCollection that you'd like
to extract the Points from.excludeWrapCoord - whether or not to include the final coordinate of LinearRings that
wraps the ring in its iteration. Used if a Feature in the
FeatureCollection that's passed through this method, is a
Polygon or MultiPolygon geometry.List made up of Pointspublic static com.mapbox.geojson.Point getCoord(com.mapbox.geojson.Feature obj)
Point from a Feature with a Point geometry.obj - any value