How to get geometry type in SQL Server?

I work with geometry types in SQL Server, and I wonder if there is any function to determine which geometry (point, multipoint, polygon, etc.)?

+4
source share
1 answer

It looks like you want STGeometryType :

OGC type names that can be returned by STGeometryType () are Point, LineString, Polygon, GeometryCollection, MultiPoint, MultiLineString, and MultiPolygon.

+8
source

Source: https://habr.com/ru/post/1338749/


All Articles