ST_GeometryType - Amazon Neptune
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

ST_GeometryType

ST_GeometryType returns the type of the geometry as a string.

Syntax

ST_GeometryType(geom)

Arguments

  • geom - A value of data type GEOMETRY or an expression that evaluates to a GEOMETRY type.

Return type

STRING

If geom is null, then null is returned.

If the input parameter is not a Geometry, then a BadRequestException is returned.

Examples

RETURN ST_GeometryType(ST_GeomFromText('LINESTRING(77.29 29.07,77.42 29.26,77.27 29.31,77.29 29.07)')); ST_LineString