java.lang.Object
org.apache.olingo.commons.api.edm.geo.Geospatial
org.apache.olingo.commons.api.edm.geo.Point

public class Point extends Geospatial
Represents a point, either Edm.GeographyPoint or Edm.GeometryPoint.
  • Constructor Details

    • Point

      public Point(Geospatial.Dimension dimension, SRID srid)
      Creates a new point.
      Parameters:
      dimension - Dimension of the point
      srid - SRID value
  • Method Details

    • getX

      public double getX()
      Returns the x coordinate.
      Returns:
      x coordinate
    • setX

      public void setX(double x)
      Sets the x coordinate.
      Parameters:
      x - x coordinate
    • getY

      public double getY()
      Returns the y coordinate.
      Returns:
      y coordinate
    • setY

      public void setY(double y)
      Sets the y coordinate.
      Parameters:
      y - y coordinate
    • getZ

      public double getZ()
      Returns the z coordinate.
      Returns:
      z coordinate
    • setZ

      public void setZ(double z)
      Sets the z coordinate.
      Parameters:
      z - z coordinate
    • getEdmPrimitiveTypeKind

      public EdmPrimitiveTypeKind getEdmPrimitiveTypeKind()
      Description copied from class: Geospatial
      Specified by:
      getEdmPrimitiveTypeKind in class Geospatial
      Returns:
      EDM primitive type kind
    • 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