[postgis-devel] [PostGIS] #1706: TopoGeo_AddPolygon not adding polygons

PostGIS trac at osgeo.org
Fri Mar 23 06:50:56 PDT 2012


#1706: TopoGeo_AddPolygon not adding polygons
----------------------+-----------------------------------------------------
 Reporter:  pramsey   |       Owner:  strk         
     Type:  defect    |      Status:  new          
 Priority:  medium    |   Milestone:  PostGIS 2.0.0
Component:  topology  |     Version:  trunk        
 Keywords:            |  
----------------------+-----------------------------------------------------

Comment(by strk):

 About the reason why we're snapping again to endpoints (see comment:6)
 this is because when adding endpoints using TopoGeo_AddPoint we might end
 up snapping these endpoints to existing nodes again. This is indeed very
 unlikely since we're snapping the input geometries before going there, and
 when adding points we'd eventually be snapping _existing_edges_ to the new
 point added. Anyway since the noding we compute depends on GEOS and GEOS
 doesn't give us control over tolerance we can't really tell what will
 happen.

 In any case all we're trying to do is make sure our endpoints still match
 with the node identifiers that TopoGeo_AddPoint returned us. So we do not
 want to snap _segments_ but only _points_ and in particular only
 _endpoints_. By skipping the ST_Snap call and directly adding the inserted
 endpoints back this case seems to be fixed in an excelent way.

 I'm running more tests and more importantly trying to reproduce the issue
 with smaller dataset for the sake of having a regression test for it.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1706#comment:10>
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