Class Point
java.lang.Object
org.apache.olingo.commons.api.edm.geo.Geospatial
org.apache.olingo.commons.api.edm.geo.Point
Represents a point, either Edm.GeographyPoint or Edm.GeometryPoint.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.olingo.commons.api.edm.geo.Geospatial
Geospatial.Dimension, Geospatial.Type -
Field Summary
Fields inherited from class org.apache.olingo.commons.api.edm.geo.Geospatial
dimension, srid, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns theEdmPrimitiveTypeKinddoublegetX()Returns the x coordinate.doublegetY()Returns the y coordinate.doublegetZ()Returns the z coordinate.inthashCode()voidsetX(double x) Sets the x coordinate.voidsetY(double y) Sets the y coordinate.voidsetZ(double z) Sets the z coordinate.toString()Methods inherited from class org.apache.olingo.commons.api.edm.geo.Geospatial
getDimension, getGeoType, getSrid
-
Constructor Details
-
Point
Creates a new point.- Parameters:
dimension- Dimension of the pointsrid- 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
Description copied from class:GeospatialReturns theEdmPrimitiveTypeKind- Specified by:
getEdmPrimitiveTypeKindin classGeospatial- Returns:
- EDM primitive type kind
-
equals
-
hashCode
public int hashCode() -
toString
-