@Test public void coordAllPolygon() throws TurfException { String polygonString = "{type: 'Polygon', coordinates: [[[0, 0], [1, 1], [0, 1], [0, 0]]]}"; Polygon polygonGeometry = Polygon.fromJson(polygonString); List<Point> resultList = TurfMeta.coordAll(polygonGeometry, false); assertEquals(resultList.size(), 4, DELTA); assertEquals(resultList.get(0), Point.fromLngLat(0, 0)); assertEquals(resultList.get(1), Point.fromLngLat(1, 1)); assertEquals(resultList.get(2), Point.fromLngLat(0, 1)); assertEquals(resultList.get(3), Point.fromLngLat(0, 0)); }
@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);  }