From 2127b6fe9918dc51b6d170fef6eed7f42485436d Mon Sep 17 00:00:00 2001 From: Tom Dyson Date: Fri, 25 Jul 2014 01:24:52 +0100 Subject: [PATCH] [1.7.x] Improved docs for GEOSGeometry.simplify() Backport of aa8bc7fa7d from master --- docs/ref/contrib/gis/geos.txt | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/docs/ref/contrib/gis/geos.txt b/docs/ref/contrib/gis/geos.txt index 0e4834c407..db9d04099d 100644 --- a/docs/ref/contrib/gis/geos.txt +++ b/docs/ref/contrib/gis/geos.txt @@ -440,17 +440,16 @@ topological relationship between this geometry and the other. .. method:: GEOSGeometry.simplify(tolerance=0.0, preserve_topology=False) -Returns a new :class:`GEOSGeometry`, simplified using the Douglas-Peucker -algorithm to the specified tolerance. A higher tolerance value implies -less points in the output. If no tolerance is tolerance provided, -it defaults to 0. +Returns a new :class:`GEOSGeometry`, simplified to the specified tolerance +using the Douglas-Peucker algorithm. A higher tolerance value implies +fewer points in the output. If no tolerance is provided, it defaults to 0. -By default, this function does not preserve topology - e.g., -:class:`Polygon` objects can be split, collapsed into lines or disappear. -:class:`Polygon` holes can be created or disappear, and lines can cross. +By default, this function does not preserve topology. For example, +:class:`Polygon` objects can be split, be collapsed into lines, or disappear. +:class:`Polygon` holes can be created or disappear, and lines may cross. By specifying ``preserve_topology=True``, the result will have the same -dimension and number of components as the input, however, this is -significantly slower. +dimension and number of components as the input; this is significantly +slower, however. .. method:: GEOSGeometry.sym_difference(other)