Skip to main content

GEO_TYPE

Returns the geometry type

Updated today

Description

The GEO_TYPE() function returns the geometry type as a string, such as Point, Polygon, or LineString.

Syntax

GEO_TYPE(geometry)

Output

text

Variables

  • geometry: The geometry value whose type you want to identify.

Example

GEO_TYPE(`geometry`)

Unknown Geometry

Geo Type

Point geometry

Point

Polygon geometry

Polygon

LineString geometry

LineString

Did this answer your question?