[postgis-tickets] [PostGIS] #5293: toTopoGeom: corrupted topology: face xxx could not be constructed only from edges knowing about it (like edge yyy).

PostGIS trac at osgeo.org
Mon Jan 30 11:04:21 PST 2023


#5293: toTopoGeom: corrupted topology: face xxx could not be constructed only from
edges knowing about it (like edge yyy).
-----------------------+---------------------------
  Reporter:  strk      |      Owner:  strk
      Type:  defect    |     Status:  new
  Priority:  medium    |  Milestone:  PostGIS 3.4.0
 Component:  topology  |    Version:  master
Resolution:            |   Keywords:
-----------------------+---------------------------
Comment (by strk):

 I could reproduce and found corruption already between 6001 and 10000:
 {{{
 =# update uso_suolo set tgeom = totopogeom(cgeom, 'topo_uso_suolo', 1,
 1e-3) where id between 6001 and 10000;
 NOTICE:  Corrupted topology: face 7486 could not be constructed only from
 edges knowing about it (like edge 21197).
 UPDATE 4000
 =# select * from validatetopology('topo_uso_suolo');
 NOTICE:  Checking for coincident nodes
 NOTICE:  Checking for edges crossing nodes
 NOTICE:  Checking for invalid or not-simple edges
 NOTICE:  Checking for crossing edges
 NOTICE:  Checking for edges start_node mismatch
 NOTICE:  Checking for edges end_node mismatch
 NOTICE:  Checking for faces without edges
 NOTICE:  Checking edge linking
 NOTICE:  Building edge rings
 NOTICE:  Found 14290 rings, 10818 valid shells, 3471 valid holes
             error            |  id1   | id2
 -----------------------------+--------+-----
  mixed face labeling in ring | -21197 |
 (1 row)
 }}}

 I'm not sure if it's good for the {{{ Corrupted topology }}} message to be
 just a NOTICE rather than an Exception, at that point ...
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5293#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