@Test public void coordAllGeometryCollection() throws TurfException { List<Point> points = new ArrayList<>(); points.add(Point.fromLngLat(1.0, 2.0)); points.add(Point.fromLngLat(2.0, 3.0)); LineString lineString = LineString.fromLngLats(points); List<Geometry> geometries = new ArrayList<>(); geometries.add(points.get(0)); geometries.add(lineString); BoundingBox bbox = BoundingBox.fromLngLats(1.0, 2.0, 3.0, 4.0); GeometryCollection geometryCollection = GeometryCollection.fromGeometries(geometries, bbox); FeatureCollection featureCollection = FeatureCollection.fromFeature( Feature.fromGeometry(geometryCollection) ); assertNotNull(featureCollection); assertNotNull(TurfMeta.coordAll(featureCollection,true)); assertEquals(3, TurfMeta.coordAll(featureCollection,true).size()); assertEquals(1.0, TurfMeta.coordAll(featureCollection,true).get(0).longitude(), DELTA); assertEquals(2.0, TurfMeta.coordAll(featureCollection,true).get(0).latitude(), 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);  }