[postgis-tickets] [PostGIS] #4941: ST_RemEdgeModFace causes invalid face mbr

PostGIS trac at osgeo.org
Mon Jul 5 16:03:06 PDT 2021


#4941: ST_RemEdgeModFace causes invalid face mbr
----------------------+---------------------------
 Reporter:  strk      |      Owner:  strk
     Type:  defect    |     Status:  new
 Priority:  medium    |  Milestone:  PostGIS 3.2.0
Component:  topology  |    Version:  main
 Keywords:            |
----------------------+---------------------------
 Somehow the MBR column of the face table is getting ruined by
 ST_RemEdgeModFace:

 {{{
 =# SELECT * from validatetopology('invalid');
  error | id1 | id2
 -------+-----+-----
 (0 rows)
 =# select ST_RemEdgeModFace('invalid', 330);
 DEBUG:  Drop of edge 330 merged faces 152 and 134
 DEBUG:  Face1 box is GBOX((12.123711,65.127846),(12.20883,65.210075))
 DEBUG:  Face2 box is GBOX((12.163308,65.163696),(12.163559,65.163818))
 DEBUG:  Merged faces box is
 GBOX((12.123711,65.127846),(12.20883,65.210075))
  st_remedgemodface
 -------------------
                134
 (1 row)
 =# SELECT * from validatetopology('invalid');
 DEBUG:  MBR expected:BOX(12.123710632324219
 65.12784576416016,12.208829879760742 65.21007537841797)
 obtained:BOX(12.123711265448206 65.12785021295713,12.208829785296102
 65.21007378815003)
        error        | id1 | id2
 --------------------+-----+-----
  face has wrong mbr | 134 |
 (1 row)
 }}}

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