Opened 7 years ago

Closed 6 years ago

#1774 closed enhancement (fixed)

Confusing error message from ST_ChangeEdgeGeom (lwpoly_from_lwlines: shell must have at least 4 points)

Reported by: strk Owned by: strk
Priority: low Milestone: PostGIS 2.0.1
Component: topology Version: 2.0.x
Keywords: Cc:

Description

The error is confusing as I'm changing an edge geometry so don't expect LWPOLY to have anything to do with it.

I guess it's about the isomorphic movement detection.

Change History (5)

comment:1 Changed 7 years ago by strk

Component: postgistopology
Owner: changed from pramsey to strk

Ok the error is raised when passing a single-point edge as a replacement for an existing edge. It's surely non-isomorphic (even if the edge was closed, a face would disappear), but could be reported in a nicer way :)

comment:2 Changed 7 years ago by strk

Same error message with an EMPTY linestring

comment:3 Changed 7 years ago by strk

Priority: mediumlow
Type: defectenhancement

comment:4 Changed 7 years ago by strk

Summary: ST_ChangeEdgeGeom: ERROR: lwpoly_from_lwlines: shell must have at least 4 pointsConfusing error message from ST_ChangeEdgeGeom (lwpoly_from_lwlines: shell must have at least 4 points)

comment:5 Changed 6 years ago by strk

Resolution: fixed
Status: newclosed

r9897 and r9898 in 2.0 branch, r9899 in trunk

Note: See TracTickets for help on using tickets.