Geometry Outputs
st_asBinary
Array[Byte] st_asBinary(Geometry geom)
This function returns Geometry geom in WKB representation.
Example:
st_asGeoJSON
String st_asGeoJSON(Geometry geom)
This function returns Geometry geom in GeoJSON representation.
Example:
st_asLatLonText
String st_asLatLonText(Point p)
This function returns a String describing the latitude and longitude of Point p in degrees, minutes, and seconds. (This presumes that the units of the coordinates of p are latitude and longitude.)
Example:
st_asText
String st_asText(Geometry geom)
This function returns Geometry geom in WKT representation.
st_geoHash
String st_geoHash(Geometry geom, Int prec)
This function returns the Geohash (in base-32 representation) of an interior point of Geometry geom. prec indicates the encoding precision. For more information about Geohash, see Geohash.
Example:
Last Article: Geometry Editors
Next Article: Spatial Relationships
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.