Opened 9 years ago

Closed 9 years ago

#5434 closed (fixed)

Add preserve_topology option to GEOSGeometry.simplify

Reported by: Robert Coup Owned by: jbronn
Component: GIS Version: gis
Severity: Keywords: sprint
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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 (1)

simplify_preserve_topology.patch (1.5 KB) - added by Robert Coup 9 years ago.

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by Robert Coup

comment:1 Changed 9 years ago by Adrian Holovaty

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Version: SVNgis

comment:2 Changed 9 years ago by jbronn

Owner: changed from nobody to jbronn
Status: newassigned

comment:3 Changed 9 years ago by jbronn

Status: assignednew

comment:4 Changed 9 years ago by jbronn

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.
Back to Top