public class GeographyPoint extends GeographyValue
A geography point.
DEFAULT_SRID
Constructor and Description |
---|
GeographyPoint()
Constructor
|
Modifier and Type | Method and Description |
---|---|
static GeographyPoint |
castOptional(DataValue value)
For internal use only.
|
static GeographyPoint |
castRequired(DataValue value)
For internal use only.
|
java.lang.String |
formatWKT()
See formatWKT(boolean).
|
java.lang.String |
formatWKT(boolean sridRequired)
Return this value formatted in OData WKT (well-known text) format.
|
PointCoordinates |
getCoordinates()
Return the coordinates of this value.
|
DataType |
getDataType()
Return data type of the wrapped value.
|
static GeographyPoint |
parse(java.lang.String text)
Return a value parsed from text in GeoJSON format.
|
static GeographyPoint |
parseWKT(java.lang.String text)
|
static GeographyPoint |
parseWKT(java.lang.String text,
boolean sridRequired)
Return a value parsed from OData WKT (well-known text) format.
|
void |
setCoordinates(PointCoordinates value)
Set the coordinates of this value.
|
static GeographyPoint |
withLatitudeLongitude(double latitude,
double longitude)
Return 2D geography point.
|
static GeographyPoint |
withXY(double x,
double y)
Return 2D geography point.
|
static GeographyPoint |
withXYM(double x,
double y,
double m)
Return 2D geography point with measure.
|
static GeographyPoint |
withXYZ(double x,
double y,
double z)
Return 3D geography point.
|
static GeographyPoint |
withXYZM(double x,
double y,
double z,
double m)
Return 3D geography point with measure.
|
getSrsCode, getSrsName, parseAny, parseAnyWKT, parseAnyWKT, setSrsCode, setSrsName, toString
cloneMutable, equals, getTypeCode, hashCode
public static GeographyPoint castOptional(DataValue value)
For internal use only.
value
- (internal use only)public static GeographyPoint castRequired(DataValue value)
For internal use only.
value
- (internal use only)public java.lang.String formatWKT()
formatWKT
in class GeographyValue
public java.lang.String formatWKT(boolean sridRequired)
Return this value formatted in OData WKT (well-known text) format.
formatWKT
in class GeographyValue
sridRequired
- Is SRID prefix required?public PointCoordinates getCoordinates()
Return the coordinates of this value.
public DataType getDataType()
Return data type of the wrapped value.
getDataType
in class DataValue
public static GeographyPoint parse(java.lang.String text)
Return a value parsed from text in GeoJSON format.
text
- A value in GeoJSON format.public static GeographyPoint parseWKT(java.lang.String text)
text
- Text parameter.public static GeographyPoint parseWKT(java.lang.String text, boolean sridRequired)
Return a value parsed from OData WKT (well-known text) format.
text
- A value in OData WKT format.sridRequired
- Is SRID prefix required?public void setCoordinates(PointCoordinates value)
Set the coordinates of this value.
value
- The coordinates of this value.public static GeographyPoint withLatitudeLongitude(double latitude, double longitude)
Return 2D geography point.
latitude
- Y-coordinate.longitude
- X-coordinate.public static GeographyPoint withXY(double x, double y)
Return 2D geography point.
x
- X-coordinate (longitude).y
- Y-coordinate (latitude).public static GeographyPoint withXYM(double x, double y, double m)
Return 2D geography point with measure.
x
- X-coordinate (longitude).y
- Y-coordinate (latitude).m
- M-coordinate (measure).public static GeographyPoint withXYZ(double x, double y, double z)
Return 3D geography point.
x
- X-coordinate (longitude).y
- Y-coordinate (latitude).z
- Z-coordinate (altitude).public static GeographyPoint withXYZM(double x, double y, double z, double m)
Return 3D geography point with measure.
x
- X-coordinate (longitude).y
- Y-coordinate (latitude).z
- Z-coordinate (altitude).m
- M-coordinate (measure).