Package com.cognite.client.util.geo
Class Polygons
- java.lang.Object
-
- com.cognite.client.util.geo.Polygons
-
-
Constructor Summary
Constructors Constructor Description Polygons()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Polygonof(double[][][] coordinates)Create aPolygonobject based on a list of list of point coordinates.static Polygonof(LineString... lineStrings)Create aPolygonobject based on a set of geoLineStrings.static Polygonof(List<LineString> lineStrings)Create aPolygonobject based on a set of geoLineStrings.
-
-
-
Method Detail
-
of
public static Polygon of(LineString... lineStrings)
Create aPolygonobject based on a set of geoLineStrings.- Parameters:
lineStrings- The set of LineStrings representing the Polygon.- Returns:
- The
Polygonrepresenting the geo feature.
-
of
public static Polygon of(List<LineString> lineStrings)
Create aPolygonobject based on a set of geoLineStrings.- Parameters:
lineStrings- The set of LineStrings representing the Polygon.- Returns:
- The
Polygonrepresenting the geo feature.
-
of
public static Polygon of(double[][][] coordinates) throws Exception
Create aPolygonobject based on a list of list of point coordinates. Each entry in the list is a list of positions (coordinate pairs or a triplet): long, lat and an optional elevation. I.e. a list of closed loop line strings. A closed loop is a line string of >= 4 positions where the first and last positions are equal. 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]]].
-
-