Geometry Property Analysis Functions
Point Property Analysis Functions
LineString Property Analysis Functions
MultiLineString Property Analysis Functions
Polygon Property Analysis Functions
MultiPolygon Property Analysis Functions
GeometryCollection Property Analysis Functions
MultiPolygon Property Analysis FunctionsArea(mpoly)
MultiPolygon
value mpoly, as measured in its spatial reference system.
mysql> SELECT Area(GeomFromText('MultiPolygon(((0 0,0 3,3 3,3 0,0 0),(1 1,1 2,2 2,2 1,1 1)))'));
+-----------------------------------------------------------------------------------+
| Area(GeomFromText('MultiPolygon(((0 0,0 3,3 3,3 0,0 0),(1 1,1 2,2 2,2 1,1 1)))')) |
+-----------------------------------------------------------------------------------+
| 8 |
+-----------------------------------------------------------------------------------+
The OpenGIS specification also defines the following functions, which MySQL does not yet implement:
Centroid(mpoly)
MultiPolygon value
mpoly as a Point. The result is not guaranteed to be on
the MultiPolygon.
PointOnSurface(mpoly)
Point value that is guaranteed to be on the
MultiPolygon value mpoly.