Package com.cognite.client.util.geo
Class Points
- java.lang.Object
-
- com.cognite.client.util.geo.Points
-
-
Constructor Summary
Constructors Constructor Description Points()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Pointof(double[] coordinates)Create aPointobject based on longitude (easting), latitude (northing) and (optional) elevation coordinates.static Pointof(double lon, double lat)Create aPointobject based on longitude (easting) and latitude (northing) coordinates.static Pointof(double lon, double lat, double elevation)Create aPointobject based on longitude (easting), latitude (northing) and elevation coordinates.
-
-
-
Method Detail
-
of
public static Point of(double lon, double lat)
Create aPointobject based on longitude (easting) and latitude (northing) coordinates. The coordinate datum is World Geodetic System 1984 (WGS 84), with longitude and latitude units of decimal degrees.- Parameters:
lon- The longitude decimal degrees value of the point.lat- The latitude decimal degrees value of the point.- Returns:
- The
Pointrepresenting the geolocation.
-
of
public static Point of(double lon, double lat, double elevation)
Create aPointobject based on longitude (easting), latitude (northing) and elevation coordinates. The coordinate datum is World Geodetic System 1984 (WGS 84), with longitude and latitude units of decimal degrees. The elevation is expressed in height in meters above or below the WGS 84 reference ellipsoid.- Parameters:
lon- The longitude decimal degrees value of the point.lat- The latitude decimal degrees value of the point.elevation- The elevation in meters.- Returns:
- The
Pointrepresenting the geolocation.
-
of
public static Point of(double[] coordinates) throws Exception
Create aPointobject based on longitude (easting), latitude (northing) and (optional) elevation coordinates. The coordinate datum is World Geodetic System 1984 (WGS 84), with longitude and latitude units of decimal degrees. The elevation is expressed in height in meters above or below the WGS 84 reference ellipsoid. The input arguments must be supplied in the order of longitude (1st), latitude (2nd) and elevation (3rd). The elevation component is optional. I.e. you must supply minimum 2 input arguments.
-
-