Fix the order of geospatial constructors in the docs
@@ -22,27 +22,27 @@ Presto Geospatial functions support the Well-Known Text (WKT) form of spatial ob
Constructors
------------
-.. function:: ST_Point(double, double) -> Point
+.. function:: ST_AsText(Geometry) -> varchar
- Returns a geometry type point object with the given coordinate values.
+ Returns the WKT representation of the geometry. For empty geometries,
+ ``ST_AsText(ST_LineFromText('LINESTRING EMPTY'))`` will produce ``'MULTILINESTRING EMPTY'``
+ and ``ST_AsText(ST_Polygon('POLYGON EMPTY'))`` will produce ``'MULTIPOLYGON EMPTY'``.
-.. function:: ST_LineFromText(varchar) -> LineString
+.. function:: ST_GeometryFromText(varchar) -> Geometry
- Returns a geometry type linestring object from WKT representation.
+ Returns a geometry type object from WKT representation.
-.. function:: ST_Polygon(varchar) -> Polygon
+.. function:: ST_LineFromText(varchar) -> LineString
- Returns a geometry type polygon object from WKT representation.
+ Returns a geometry type linestring object from WKT representation.
-.. function:: ST_GeometryFromText(varchar) -> Geometry
+.. function:: ST_Point(double, double) -> Point
- Returns a geometry type object from WKT representation.
+ Returns a geometry type point object with the given coordinate values.
-.. function:: ST_AsText(Geometry) -> varchar
+.. function:: ST_Polygon(varchar) -> Polygon
- Returns the WKT representation of the geometry. For empty geometries,
- ``ST_AsText(ST_LineFromText('LINESTRING EMPTY'))`` will produce ``'MULTILINESTRING EMPTY'``
- and ``ST_AsText(ST_Polygon('POLYGON EMPTY'))`` will produce ``'MULTIPOLYGON EMPTY'``.
+ Returns a geometry type polygon object from WKT representation.
Relationship Tests
------------------
