Package com.cognite.client.util.geo
Class MultiPolygons
- java.lang.Object
-
- com.cognite.client.util.geo.MultiPolygons
-
public class MultiPolygons extends Object
Helper class for working withMultiPolygonobjects.
-
-
Constructor Summary
Constructors Constructor Description MultiPolygons()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MultiPolygonof(double[][][][] coordinates)Create aMultiPolygonobject based on a list of polygon point coordinates.static MultiPolygonof(Polygon... polygons)Create aMultiPolygonobject based on a set of geoPolygons.static MultiPolygonof(List<Polygon> polygons)Create aMultiPolygonobject based on a set of geoPolygons.
-
-
-
Method Detail
-
of
public static MultiPolygon of(Polygon... polygons)
Create aMultiPolygonobject based on a set of geoPolygons.- Parameters:
polygons- The set of LineStrings representing the Polygon.- Returns:
- The
MultiPolygonrepresenting the geo feature.
-
of
public static MultiPolygon of(List<Polygon> polygons)
Create aMultiPolygonobject based on a set of geoPolygons.- Parameters:
polygons- The set of LineStrings representing the Polygon.- Returns:
- The
MultiPolygonrepresenting the geo feature.
-
of
public static MultiPolygon of(double[][][][] coordinates) throws Exception
Create aMultiPolygonobject based on a list of polygon point coordinates. Each entry in the list is a list of list of positions (coordinate pairs or a triplet): long, lat and an optional elevation. I.e. a list of polygon coordinates. The coordinate datum is World Geodetic System 1984 (WGS 84), with longitude and latitude units of decimal degrees. The optional elevation is expressed in height in meters above or below the WGS 84 reference ellipsoid. For example,[ [[[30.0, 40.0], [35.0, 45.0], [35.0, 40.0], [30.0, 40.0]]], [[[10.0, 5.0], [25.0, 25.0], [15.0, 10.0], [10.0, 5.0]]] ].- Parameters:
coordinates- The coordinates for the MultiPolygon.- Returns:
- The
MultiPolygonrepresenting the geo feature. - Throws:
Exception
-
-