[PostGIS] #6064: Silent topology corruption with topology.TopoGeo_addLinestring

PostGIS trac at osgeo.org
Tue Apr 7 01:15:56 PDT 2026


#6064: Silent topology corruption with topology.TopoGeo_addLinestring
-----------------------+--------------------
  Reporter:  strk      |      Owner:  strk
      Type:  defect    |     Status:  new
  Priority:  medium    |  Milestone:
 Component:  topology  |    Version:  master
Resolution:            |   Keywords:
-----------------------+--------------------
Comment (by strk):

 The resulting topology contains edges that are very short:
 {{{
 postgis_reg=# select edge_id, ST_Length(geom) from t6064.edge;
  edge_id |       st_length
 ---------+------------------------
        6 |    0.20166820447100725
        1 | 2.5110321484918296e-07
        4 | 2.5110321655621793e-07
        3 |     0.2017140909558352
        2 | 3.1201241416250513e-13
        5 | 3.6487597516463005e-13
 }}}

 The computed snap tolerance (when NOT passing 0 as the tolerance) is
 `2.48862579345703e-13` so those tiny edges are still longer than
 tolerance.
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/6064#comment:3>
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