[1.8.x] Fixed #25660 -- Documented GEOSGeometry.dims

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

View File

@ -172,6 +172,17 @@ Properties
Returns the coordinates of the geometry as a tuple. 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 .. attribute:: GEOSGeometry.empty
Returns whether or not the set of points in the geometry is empty. Returns whether or not the set of points in the geometry is empty.