Skip to main content
Returns the Open Geospatial Consortium (OGC) geometry family of a GEOGRAPHY or GEOMETRY value.

Syntax

Return value

Returns one of ST_Point, ST_LineString, ST_Polygon, ST_MultiPoint, ST_MultiLineString, ST_MultiPolygon, or ST_GeometryCollection. A typed EMPTY value retains its family name. Returns NULL when the input is NULL. Native compute supports XY values with a valid descriptor. Unsupported dimensions or descriptors produce an error.

Examples

keyword

ST_GEOMETRYTYPE,ST,GEOMETRYTYPE GEOGRAPHY, GEOMETRY, VARCHAR