Class Points

java.lang.Object
com.cognite.client.util.geo.Points

public class Points extends Object
Helper class for working with Point objects.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Point
    of(double[] coordinates)
    Create a Point object based on longitude (easting), latitude (northing) and (optional) elevation coordinates.
    static Point
    of(double lon, double lat)
    Create a Point object based on longitude (easting) and latitude (northing) coordinates.
    static Point
    of(double lon, double lat, double elevation)
    Create a Point object based on longitude (easting), latitude (northing) and elevation coordinates.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Points

      public Points()
  • Method Details

    • of

      public static Point of(double lon, double lat)
      Create a Point object 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 Point representing the geolocation.
    • of

      public static Point of(double lon, double lat, double elevation)
      Create a Point object 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 Point representing the geolocation.
    • of

      public static Point of(double[] coordinates) throws Exception
      Create a Point object 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.
      Parameters:
      coordinates - The long, lat and (optional) elevation of the point.
      Returns:
      The Point representing the geolocation.
      Throws:
      Exception