ST_GEOMETRYTYPE
Returns the name of the geometry type (e.g., 'POINT', 'LINESTRING', 'POLYGON') for the given geometry instance.
Syntax
ST_GeometryType(g)
GeometryType(g)Description
Examples
SELECT GeometryType(GeomFromText('POINT(1 1)'));
+------------------------------------------+
| GeometryType(GeomFromText('POINT(1 1)')) |
+------------------------------------------+
| POINT |
+------------------------------------------+Last updated
Was this helpful?

