Package com.cognite.client.util.geo
Class MultiLineStrings
- java.lang.Object
-
- com.cognite.client.util.geo.MultiLineStrings
-
public class MultiLineStrings extends Object
Helper class for working withMultiLineString
objects.
-
-
Constructor Summary
Constructors Constructor Description MultiLineStrings()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MultiLineString
of(double[][][] coordinates)
Create aMultiLineString
object based on a list of list of point coordinates.static MultiLineString
of(LineString... lineStrings)
Create aMultiLineString
object based on a set of geoLineString
s.static MultiLineString
of(List<LineString> lineStrings)
Create aMultiLineString
object based on a set of geoLineString
s.
-
-
-
Method Detail
-
of
public static MultiLineString of(LineString... lineStrings)
Create aMultiLineString
object based on a set of geoLineString
s.- Parameters:
lineStrings
- The set of LineStrings representing the MultiLineString.- Returns:
- The
MultiLineString
representing the geo feature.
-
of
public static MultiLineString of(List<LineString> lineStrings)
Create aMultiLineString
object based on a set of geoLineString
s.- Parameters:
lineStrings
- The set of LineStrings representing the MultiLineString.- Returns:
- The
MultiLineString
representing the geo feature.
-
of
public static MultiLineString of(double[][][] coordinates) throws Exception
Create aMultiLineString
object 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 line strings. 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]], [[10.0, 5.0], [15.0, 25.0]]]
.- Parameters:
coordinates
- The coordinates for the MultiLineString.- Returns:
- The
MultiLineString
representing the geo feature. - Throws:
Exception
-
-