Returns the "topological dimension" of a geometry.
For POINT and MULTIPOINT geometries, returns
0For LINESTRING and MULTILINESTRING, returns
1For POLYGON and MULTIPOLYGON, returns
2For GEOMETRYCOLLECTION, returns the maximum dimension of the contained geometries, or 0 if the collection is empty.