GEOSGeometry.dims
Returns the dimension of the geometry:
-
0
forPoint
s andMultiPoint
s -
1
forLineString
s andMultiLineString
s -
2
forPolygon
s andMultiPolygon
s -
-1
for emptyGeometryCollection
s - the maximum dimension of its elements for non-empty
GeometryCollection
s
Please login to continue.