[postgis-devel] [PostGIS] #1383: Topology: ST_AddEdgeNewFaces() fail to add an edge

PostGIS trac at osgeo.org
Thu Jan 12 06:36:05 PST 2012


#1383: Topology: ST_AddEdgeNewFaces() fail to add an edge
-----------------------+----------------------------------------------------
 Reporter:  aperi2007  |       Owner:  strk         
     Type:  defect     |      Status:  assigned     
 Priority:  medium     |   Milestone:  PostGIS 2.0.0
Component:  topology   |     Version:  trunk        
 Keywords:             |  
-----------------------+----------------------------------------------------

Comment(by strk):

 Adding debugging calls fixes it as well, so _really_ look like memory
 handling bug.
 Here's an excerpt of debugging from of a working session:

 {{{
 DEBUG:  p1: POINT(-0.2 0.4)
 DEBUG:  p2: POINT(-2.77555756156289e-17 0.4)
 DEBUG:  bounds: LINESTRING(0.1 0.3,-0.1 0.2,-0.1 0.1,-0.1
 1.38777878078145e-16,0.2 -0.2,0.2 -0.4,-0.2 -0.4,-0.4 -0.4,-0.4 0.4,-0.3
 0.4,-0.2 0.4,-2.77555756156289e-17 0.4,0.1 0.4,0.1 0.3)
 DEBUG:  LocatePoint(bounds,p1): 0.865959016295581
 DEBUG:  LocatePoint(bounds,p2): 0.93297950814779
 DEBUG:  Edge 30 (left:0, right:0) - ring : {0} - right_side : t
 }}}

 When it fails one of the ST_Locate_Point returns 0, swapping right/left
 side.
 So could be related to ST_Locate_Point.

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