summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2012-11-28 22:31:13 +0100
committerClaude Paroz <claude@2xlibre.net>2012-11-28 22:34:43 +0100
commit89593048e2eb5ef64a51da43728307e2dbef5783 (patch)
tree1fde0835c1df9590ac57777e61149ddfa513a620 /docs
parenta21e8dee7682abdba646c5b72b6371d392e44dd1 (diff)
[1.5.x] Fixed #19366 -- Prevented GEOSIndexError when comparing geometries
Thanks Craig de Stigter for the report and collaboration on the patch. Backport of cc3c4a9d5 from master.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/gis/geos.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/ref/contrib/gis/geos.txt b/docs/ref/contrib/gis/geos.txt
index eb20b1f411..7d7c32781c 100644
--- a/docs/ref/contrib/gis/geos.txt
+++ b/docs/ref/contrib/gis/geos.txt
@@ -656,6 +656,17 @@ is returned instead.
Returns the number of interior rings in this geometry.
+.. admonition:: Comparing Polygons
+
+ Note that it is possible to compare ``Polygon`` objects directly with ``<``
+ or ``>``, but as the comparison is made through Polygon's
+ :class:`LineString`, it does not mean much (but is consistent and quick).
+ You can always force the comparison with the :attr:`~GEOSGeometry.area`
+ property::
+
+ >>> if poly_1.area > poly_2.area:
+ >>> pass
+
Geometry Collections
====================