[postgis-tickets] [PostGIS] #3351: lwt_RemIsoEdge() bug - Nodes not restored so to be Isolated

PostGIS trac at osgeo.org
Tue Oct 27 16:05:17 PDT 2015


#3351: lwt_RemIsoEdge() bug - Nodes not restored so to be Isolated
-----------------------+---------------------------
 Reporter:  esseffe    |      Owner:  strk
     Type:  defect     |     Status:  new
 Priority:  high       |  Milestone:  PostGIS 2.3.0
Component:  liblwgeom  |    Version:  trunk
 Keywords:             |
-----------------------+---------------------------
 lwt_RemIsoEdge() does not correctly restore Nodes to an "Isolated" state
 after removing the Edge and this causes subsequent calls to
 lwt_RemIsoNode() to unexpectedly fail raising a "non-isolated node"
 exception.
 The following SQL snippet reproduces the issue:

 {{{
 BEGIN;
 SELECT CreateTopology('topo', 4326, 0);
 SELECT ST_AddIsoNode('topo', NULL, ST_SetSRID(ST_MakePoint(1, 1), 4326));
 SELECT ST_AddIsoNode('topo', NULL, ST_SetSRID(ST_MakePoint(2, 2), 4326));
 SELECT ST_AddIsoEdge('topo', 1, 2, ST_GeomFromText('LINESTRING(1 1, 2
 2)',4326));
 SELECT ST_RemoveIsoEdge('topo', 1);
 SELECT ST_RemoveIsoNode('topo', 1);
 ROLLBACK;
 }}}

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3351>
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