public final class TurfAssertions
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
| static void | collectionOf(com.mapbox.geojson.FeatureCollection featureCollection,
            java.lang.String type,
            java.lang.String name)Enforce expectations about types of  FeatureCollectioninputs for Turf. | 
| static void | featureOf(com.mapbox.geojson.Feature feature,
         java.lang.String type,
         java.lang.String name)Enforce expectations about types of  Featureinputs for Turf. | 
| static void | geojsonType(com.mapbox.geojson.GeoJson value,
           java.lang.String type,
           java.lang.String name)Enforce expectations about types of GeoJson objects for Turf. | 
| static com.mapbox.geojson.Point | getCoord(com.mapbox.geojson.Feature obj)Deprecated. 
 | 
@Deprecated public static com.mapbox.geojson.Point getCoord(com.mapbox.geojson.Feature obj)
TurfMeta.getCoord(Feature)Point from a Feature with a Point geometry.obj - any valuepublic static void geojsonType(com.mapbox.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(com.mapbox.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(com.mapbox.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