@Test public void coordAllFeatureCollection() throws TurfException { String multipolygonJson = "{type: 'MultiPolygon', coordinates: [[[[0, 0], [1, 1], [0, 1], [0, 0]]]]}"; String lineStringJson = "{type: 'LineString', coordinates: [[0, 0], [1, 1]]}"; FeatureCollection featureCollection = FeatureCollection.fromFeatures( new Feature[] { Feature.fromGeometry(MultiPolygon.fromJson(multipolygonJson)), Feature.fromGeometry(LineString.fromJson(lineStringJson))} ); assertNotNull(featureCollection); assertEquals(5, TurfMeta.coordAll(featureCollection,true).size()); assertEquals(0, TurfMeta.coordAll(featureCollection,true).get(0).latitude(), DELTA); assertEquals(0, TurfMeta.coordAll(featureCollection,true).get(0).longitude(), DELTA); assertEquals(1, TurfMeta.coordAll(featureCollection,true).get(4).latitude(), DELTA); assertEquals(1, TurfMeta.coordAll(featureCollection,true).get(4).longitude(), DELTA); }
@NonNull public static List<Point> coordAll(@NonNull Point point) { return coordAll(new ArrayList<Point>(), point); }
TurfMeta { @NonNull public static List<Point> coordAll(@NonNull Point point) { return coordAll(new ArrayList<Point>(), point); } }
TurfMeta { @NonNull public static List<Point> coordAll(@NonNull Point point) { return coordAll(new ArrayList<Point>(), point); } private  TurfMeta(); }
TurfMeta { @NonNull public static List<Point> coordAll(@NonNull Point point) { return coordAll(new ArrayList<Point>(), point); } private  TurfMeta(); @NonNull static List<Point> coordAll(@NonNull Point point); @NonNull static List<Point> coordAll(@NonNull MultiPoint multiPoint); @NonNull static List<Point> coordAll(@NonNull LineString lineString); @NonNull static List<Point> coordAll(@NonNull Polygon polygon, @NonNull boolean excludeWrapCoord); @NonNull static List<Point> coordAll(@NonNull MultiLineString multiLineString); @NonNull static List<Point> coordAll(@NonNull MultiPolygon multiPolygon,
                                     @NonNull boolean excludeWrapCoord); @NonNull static List<Point> coordAll(@NonNull Feature feature,
                                     @NonNull boolean excludeWrapCoord); @NonNull static List<Point> coordAll(@NonNull FeatureCollection featureCollection,
                                     @NonNull boolean excludeWrapCoord); static Point getCoord(Feature obj); }
TurfMeta { @NonNull public static List<Point> coordAll(@NonNull Point point) { return coordAll(new ArrayList<Point>(), point); } private  TurfMeta(); @NonNull static List<Point> coordAll(@NonNull Point point); @NonNull static List<Point> coordAll(@NonNull MultiPoint multiPoint); @NonNull static List<Point> coordAll(@NonNull LineString lineString); @NonNull static List<Point> coordAll(@NonNull Polygon polygon, @NonNull boolean excludeWrapCoord); @NonNull static List<Point> coordAll(@NonNull MultiLineString multiLineString); @NonNull static List<Point> coordAll(@NonNull MultiPolygon multiPolygon,
                                     @NonNull boolean excludeWrapCoord); @NonNull static List<Point> coordAll(@NonNull Feature feature,
                                     @NonNull boolean excludeWrapCoord); @NonNull static List<Point> coordAll(@NonNull FeatureCollection featureCollection,
                                     @NonNull boolean excludeWrapCoord); static Point getCoord(Feature obj);  }