Package com.cognite.client.util.geo
Class Points
java.lang.Object
com.cognite.client.util.geo.Points
Helper class for working with
Point objects.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
Points
public Points()
-
-
Method Details
-
of
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
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
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.
-