[PostGIS] #5797: TopoGeo_addPoint fails: end node not geometry end point

PostGIS trac at osgeo.org
Fri Oct 11 03:04:17 PDT 2024


#5797: TopoGeo_addPoint fails: end node not geometry end point
-----------------------+---------------------------
  Reporter:  strk      |      Owner:  strk
      Type:  defect    |     Status:  new
  Priority:  medium    |  Milestone:  PostGIS 3.5.1
 Component:  topology  |    Version:  3.5.x
Resolution:            |   Keywords:
-----------------------+---------------------------
Comment (by strk):

 Debug output:
 {{{
 psql:test0.sql:7: DEBUG:  [topo/lwgeom_topo.c:_lwt_AddPoint:6687] Adding
 point: POINT(9 5)
 psql:test0.sql:7: DEBUG:  [topo/lwgeom_topo.c:_lwt_AddPoint:6763] New
 point is within 5 units of 1 edges
 psql:test0.sql:7: DEBUG:
 [topo/lwgeom_topo.c:_lwt_SplitAllEdgesToNewNode:6452] Edge 1 distance:
 4.70678724331642
 psql:test0.sql:7: DEBUG:
 [topo/lwgeom_topo.c:_lwt_SplitAllEdgesToNewNode:6507] Projected point:
 POINT(8.076923076923077 0.384615384615385)
 psql:test0.sql:7: DEBUG:
 [topo/lwgeom_topo.c:_lwt_SplitAllEdgesToNewNode:6533] Splitting closest
 edge 1
 psql:test0.sql:7: DEBUG:
 [topo/lwgeom_topo.c:_lwt_SplitAllEdgesToNewNode:6543] Edge 1 does not
 contain projected point to it
 psql:test0.sql:7: DEBUG:  [topo/lwgeom_topo.c:_lwt_toposnap:443] It took
 1/1 iterations to properly snap
 psql:test0.sql:7: DEBUG:
 [topo/lwgeom_topo.c:_lwt_SplitAllEdgesToNewNode:6561] Edge snapped with
 tolerance 5
 psql:test0.sql:7: DEBUG:
 [topo/lwgeom_topo.c:_lwt_SplitAllEdgesToNewNode:6569] Edge LINESTRING(0
 0,5 1,10 0) snapped became LINESTRING(0 0,5 1,8.076923076923077
 0.384615384615385)
 psql:test0.sql:7: DEBUG:
 [topo/lwgeom_topo.c:_lwt_SplitAllEdgesToNewNode:6582] Edge first point is
 0 0, snapline first point is 0 0
 psql:test0.sql:7: DEBUG:
 [topo/lwgeom_topo.c:_lwt_SplitAllEdgesToNewNode:6606] Snapping did not
 move first point
 psql:test0.sql:7: DEBUG:  [topo/lwgeom_topo.c:lwt_ChangeEdgeGeom:3308]
 lwt_ChangeEdgeGeom: old edge has 3 points, new edge has 3 points
 psql:test0.sql:7: ERROR:  SQL/MM Spatial exception - end node not geometry
 end point.
 }}}

 The code only checks for moving first point, not last point.
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5797#comment:2>
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