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 TypeMethodDescriptionboolean
Returns theEdmPrimitiveTypeKind
double
getX()
Returns the x coordinate.double
getY()
Returns the y coordinate.double
getZ()
Returns the z coordinate.int
hashCode()
void
setX
(double x) Sets the x coordinate.void
setY
(double y) Sets the y coordinate.void
setZ
(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:Geospatial
Returns theEdmPrimitiveTypeKind
- Specified by:
getEdmPrimitiveTypeKind
in classGeospatial
- Returns:
- EDM primitive type kind
-
equals
-
hashCode
public int hashCode() -
toString
-