Fixed #27552 -- Added docs/test for GEOSGeometry.normalize().

This commit is contained in:
Sergey Fedoseev 2016-11-30 18:39:03 +06:00 committed by Tim Graham
parent 8eb56f3c78
commit 21322f9271
3 changed files with 17 additions and 1 deletions

View file

@ -652,6 +652,17 @@ Other Properties & Methods
positive integer even if it was called with a
:class:`~django.contrib.gis.gdal.CoordTransform` object.
.. method:: GEOSGeometry.normalize()
Converts this geometry to canonical form::
>>> g = MultiPoint(Point(0, 0), Point(2, 2), Point(1, 1))
>>> print(g)
MULTIPOINT (0 0, 2 2, 1 1)
>>> g.normalize()
>>> print(g)
MULTIPOINT (2 2, 1 1, 0 0)
``Point``
---------