public final class TurfAssertions
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
collectionOf(ai.nextbillion.kits.geojson.FeatureCollection featureCollection,
java.lang.String type,
java.lang.String name)
Enforce expectations about types of
FeatureCollection inputs for Turf. |
static void |
featureOf(ai.nextbillion.kits.geojson.Feature feature,
java.lang.String type,
java.lang.String name)
Enforce expectations about types of
Feature inputs for Turf. |
static void |
geojsonType(ai.nextbillion.kits.geojson.GeoJson value,
java.lang.String type,
java.lang.String name)
Enforce expectations about types of GeoJson objects for Turf.
|
static ai.nextbillion.kits.geojson.Point |
getCoord(ai.nextbillion.kits.geojson.Feature obj)
Deprecated.
|
@Deprecated public static ai.nextbillion.kits.geojson.Point getCoord(ai.nextbillion.kits.geojson.Feature obj)
TurfMeta.getCoord(Feature)Point from a Feature with a Point geometry.obj - any valuepublic static void geojsonType(ai.nextbillion.kits.geojson.GeoJson value,
java.lang.String type,
java.lang.String name)
value - any GeoJson objecttype - expected GeoJson typename - name of calling functionpublic static void featureOf(ai.nextbillion.kits.geojson.Feature feature,
java.lang.String type,
java.lang.String name)
Feature inputs for Turf. Internally this uses
Feature.type() to judge geometry types.feature - with an expected geometry typetype - type expected GeoJson typename - name of calling functionpublic static void collectionOf(ai.nextbillion.kits.geojson.FeatureCollection featureCollection,
java.lang.String type,
java.lang.String name)
FeatureCollection inputs for Turf. Internally
this uses Feature.type()} to judge geometry types.featureCollection - for which features will be judgedtype - expected GeoJson typename - name of calling function