[postgis-tickets] [PostGIS] #3265: ST_GetFaceEdge: ERROR: No edge (among 3) found to be defining geometry of face 2

PostGIS trac at osgeo.org
Wed Aug 26 06:03:23 PDT 2015


#3265: ST_GetFaceEdge: ERROR:  No edge (among 3) found to be defining geometry of
face 2
----------------------+---------------------------
 Reporter:  strk      |      Owner:  strk
     Type:  defect    |     Status:  new
 Priority:  blocker   |  Milestone:  PostGIS 2.2.0
Component:  topology  |    Version:  trunk
 Keywords:            |
----------------------+---------------------------
 The pl/pgsql version is fine, while the C version fails with:
 {{{
 ERROR:  No edge (among 3) found to be defining geometry of face 2
 }}}

 Testcase:
 {{{
 SELECT CreateTopology('topo');
 SELECT ST_AddIsoNode('topo', NULL, ST_MakePoint(150, 150));
 SELECT ST_AddIsoNode('topo', NULL, ST_MakePoint(180, 180));
 SELECT ST_AddIsoEdge('topo', 1, 2, 'LINESTRING(150 150,  180 150, 180
 180)');
 SELECT ST_AddEdgeNewFaces('topo', 1, 2, 'LINESTRING(150 150, 180 180)');
 SELECT ST_AddIsoNode('topo', NULL, ST_MakePoint(178, 170));
 SELECT ST_AddEdgeModFace('topo', 3, 3, 'LINESTRING(178 170, 178 161, 170
 161, 178 170)');
 SELECT ST_GetFaceGeometry('topo', 2); -- ok
 SELECT ST_GetFaceEdges('topo', 2); -- fails
 }}}

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