[postgis-devel] [PostGIS] #1302: AddFace getting left/right wrong (was: ST_AddEdgeModFace: ERROR: Edge 5 has face 0 registered on the side of this face, while edge 4 has face 2 on the same side)

PostGIS trac at osgeo.org
Fri Nov 18 14:15:56 PST 2011


#1302: AddFace getting left/right wrong
----------------------+-----------------------------------------------------
 Reporter:  strk      |       Owner:  strk         
     Type:  defect    |      Status:  new          
 Priority:  medium    |   Milestone:  PostGIS 2.0.0
Component:  topology  |     Version:  trunk        
 Keywords:            |  
----------------------+-----------------------------------------------------

Comment(by strk):

 Here's a small testcase:

 {{{
 --
 -- Test narrow face.
 --
 SELECT '#1302', topology.CreateTopology('tt') > 0;

 SELECT '#1302', 'E' || topology.addEdge('tt',
 '01020000000300000000917E9BA468294100917E9B8AEA2841C976BE1FA4682941C976BE9F8AEA2841B39ABE1FA46829415ACCC29F8AEA2841');
 SELECT '#1302', 'E' || topology.addEdge('tt',
 '010200000003000000B39ABE1FA46829415ACCC29F8AEA284137894120A4682941C976BE9F8AEA284100917E9BA468294100917E9B8AEA2841');
 SELECT '#1302', 'F' || topology.addFace('tt',
 '0103000000010000000500000000917E9BA468294100917E9B8AEA2841C976BE1FA4682941C976BE9F8AEA2841B39ABE1FA46829415ACCC29F8AEA284137894120A4682941C976BE9F8AEA284100917E9BA468294100917E9B8AEA2841');

 SELECT '#1302', 'E' || edge_id, 'L' || left_face, 'R' || right_face FROM
 tt.edge_data ORDER BY edge_id;

 SELECT topology.DropTopology('tt');

 }}}

 Both edges will end up having the face on the wrong side.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1302#comment:4>
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-devel mailing list