[postgis-devel] [PostGIS] #1946: 'Spatial exception - geometry intersects edge 5' exception at adding 3 polygons

PostGIS trac at osgeo.org
Fri Aug 17 04:53:07 PDT 2012


#1946: 'Spatial exception - geometry intersects edge 5' exception at adding 3
polygons
----------------------+-----------------------------------------------------
 Reporter:  wimned    |       Owner:  strk         
     Type:  defect    |      Status:  new          
 Priority:  medium    |   Milestone:  PostGIS 2.1.0
Component:  topology  |     Version:  trunk        
 Keywords:            |  
----------------------+-----------------------------------------------------

Comment(by wimned):

 Did a workaround:

 * CreateTopology with smaller tolerance

 * pass output of ST_SimplifyPreserveTopology() with tolerance 0.00001 to
 topogeo_AddPolygon()

 * after each topogeo_AddPolygon() I remove small polygons (when
 ST_IsEmpty(ST_Buffer(input_geom, -0.00005))). Remove by calling
 ST_RemEdgeModFace() with the longest edge of the face.

 * remove the nodes with exactly 2, different edges. for determining
 'proper' longest edges, with ST_ModEdgeHeal()

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