[postgis-tickets] [PostGIS] #2183: ST_SimplifyPreserveTopology does not preserve the topology
PostGIS
trac at osgeo.org
Tue Jan 22 08:19:56 PST 2013
#2183: ST_SimplifyPreserveTopology does not preserve the topology
----------------------+-----------------------------------------------------
Reporter: pcav | Owner: strk
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.0.3
Component: topology | Version: 2.0.x
Keywords: |
----------------------+-----------------------------------------------------
SELECT ST_ChangeEdgeGeom('province_topo', edge_id,
ST_SimplifyPreserveTopology(geom, 500))
topo2-> FROM province_topo.edge;
ERROR: Invalid edge (no two distinct vertices exist)
whereas:
SELECT ST_ChangeEdgeGeom(
'province_topo', edge_id,
ST_SimplifyPreserveTopology(geom, 500))
FROM province_topo.edge
WHERE ST_IsValid(
ST_SimplifyPreserveTopology(geom, 500));
completes the task, but drops all islands. See attached shapefile.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2183>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list