From 21322f92710a447708409f1fce52ee9d18752eaf Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Wed, 30 Nov 2016 18:39:03 +0600 Subject: Fixed #27552 -- Added docs/test for GEOSGeometry.normalize(). --- docs/ref/contrib/gis/geos.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'docs/ref') diff --git a/docs/ref/contrib/gis/geos.txt b/docs/ref/contrib/gis/geos.txt index 55bd5a3744..165f3c0754 100644 --- a/docs/ref/contrib/gis/geos.txt +++ b/docs/ref/contrib/gis/geos.txt @@ -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`` --------- -- cgit v1.3