Django

Code

Ticket #5434 (closed: fixed)

Opened 1 year ago

Last modified 1 year ago

Add preserve_topology option to GEOSGeometry.simplify

Reported by: rcoup Assigned to: jbronn
Milestone: Component: GIS
Version: gis Keywords: sprint
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

By default, simplify() does not preserve topology - e.g. polygons can be split, collapse to lines or disappear holes can be created or disappear, and lines can cross.

The attached patch adds a preserve_topology parameter. If True (default is False), the result will have the same dimension and number of components as the input. This is significantly slower.

Attachments

simplify_preserve_topology.patch (1.5 kB) - added by rcoup on 09/13/07 19:48:01.

Change History

09/13/07 19:48:01 changed by rcoup

  • attachment simplify_preserve_topology.patch added.

09/13/07 23:37:35 changed by adrian

  • needs_better_patch changed.
  • version changed from SVN to gis.
  • needs_tests changed.
  • needs_docs changed.

09/14/07 13:14:07 changed by jbronn

  • owner changed from nobody to jbronn.
  • status changed from new to assigned.

09/14/07 13:14:12 changed by jbronn

  • status changed from assigned to new.

09/15/07 14:19:11 changed by jbronn

  • status changed from new to closed.
  • resolution set to fixed.

(In [6315]) gis: Fixed #5434, GEOS simplify() may now preserve topologies via patch from rcoup.


Add/Change #5434 (Add preserve_topology option to GEOSGeometry.simplify)




Change Properties
Action