Class Point


public final class Point extends LatLonGeometry
Represents a point on the earth's surface. You can construct the point directly with double coordinates.

NOTES:

  1. latitude/longitude values must be in decimal degrees.
  2. For more advanced GeoSpatial indexing and query operations see the spatial-extras module
  • Constructor Details

    • Point

      public Point(double lat, double lon)
      Creates a new Point from the supplied latitude/longitude.
  • Method Details

    • getLat

      public double getLat()
      Returns latitude value at given index
    • getLon

      public double getLon()
      Returns longitude value at given index
    • toComponent2D

      protected Component2D toComponent2D()
      Description copied from class: Geometry
      get a Component2D from the geometry object
      Specified by:
      toComponent2D in class Geometry
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object