public class GeographyPolygon extends GeographyValue
A sequence of geography multi-points which represents a polygon. The first multi-point coordinate is the exterior ring, any others are interior rings.
DEFAULT_SRID
Constructor and Description |
---|
GeographyPolygon()
Constructor
|
Modifier and Type | Method and Description |
---|---|
static GeographyPolygon |
castOptional(DataValue value)
For internal use only.
|
static GeographyPolygon |
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.
|
PolygonCoordinates |
getCoordinates()
Return the coordinates of this value.
|
DataType |
getDataType()
Return data type of the wrapped value.
|
static GeographyPolygon |
parse(java.lang.String text)
Return a value parsed from text in GeoJSON format.
|
static GeographyPolygon |
parseWKT(java.lang.String text)
|
static GeographyPolygon |
parseWKT(java.lang.String text,
boolean sridRequired)
Return a value parsed from OData WKT (well-known-text) format.
|
void |
setCoordinates(PolygonCoordinates value)
Set the coordinates of this value.
|
getSrsCode, getSrsName, parseAny, parseAnyWKT, parseAnyWKT, setSrsCode, setSrsName, toString
cloneMutable, equals, getTypeCode, hashCode
public static GeographyPolygon castOptional(DataValue value)
For internal use only.
value
- (internal use only)public static GeographyPolygon 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 PolygonCoordinates getCoordinates()
Return the coordinates of this value.
public DataType getDataType()
Return data type of the wrapped value.
getDataType
in class DataValue
public static GeographyPolygon parse(java.lang.String text)
Return a value parsed from text in GeoJSON format.
text
- A value in GeoJSON format.public static GeographyPolygon parseWKT(java.lang.String text)
text
- Text parameter.public static GeographyPolygon 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(PolygonCoordinates value)
Set the coordinates of this value.
value
- The coordinates of this value.