GEOSGeometry.dims
Returns the dimension of the geometry:
-
0forPoints andMultiPoints -
1forLineStrings andMultiLineStrings -
2forPolygons andMultiPolygons -
-1for emptyGeometryCollections - the maximum dimension of its elements for non-empty
GeometryCollections
Please login to continue.