Opened 17 years ago
Closed 17 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: | no | UI/UX: | no |
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)
Change History (5)
by , 17 years ago
Attachment: | simplify_preserve_topology.patch added |
---|
comment:1 by , 17 years ago
Version: | SVN → gis |
---|
comment:2 by , 17 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 17 years ago
Status: | assigned → new |
---|
comment:4 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(In [6315]) gis: Fixed #5434, GEOS
simplify()
may now preserve topologies via patch from rcoup.