Fixed #25660 -- Documented GEOSGeometry.dims

This commit is contained in:
Sergey Fedoseev 2015-11-03 17:16:08 +05:00 committed by Tim Graham
parent 99c58c27d5
commit f98126a05a
1 changed files with 11 additions and 0 deletions

View File

@ -167,6 +167,17 @@ Properties
Returns the coordinates of the geometry as a tuple.
.. attribute:: GEOSGeometry.dims
Returns the dimension of the geometry:
* ``0`` for :class:`Point`\s and :class:`MultiPoint`\s
* ``1`` for :class:`LineString`\s and :class:`MultiLineString`\s
* ``2`` for :class:`Polygon`\s and :class:`MultiPolygon`\s
* ``-1`` for empty :class:`GeometryCollection`\s
* the maximum dimension of its elements for non-empty
:class:`GeometryCollection`\s
.. attribute:: GEOSGeometry.empty
Returns whether or not the set of points in the geometry is empty.