mirror of
https://github.com/django/django.git
synced 2025-04-04 05:26:43 +00:00
[1.8.x] Fixed #25660 -- Documented GEOSGeometry.dims
Backport of f98126a05aeb1671c8036900a2720e21645318ad from master
This commit is contained in:
parent
a31973c7c5
commit
a71fc544c6
@ -172,6 +172,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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user