From: Sandro Santilli Date: Wed, 9 Feb 2011 16:36:45 +0000 (+0000) Subject: topology.AddFace: report an "uncovered point" on missing edges [RT-SIGTA] X-Git-Tag: 2.0.0alpha1~2008 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c5162900870c1f0eb92aefd1fa8f6b146020828;p=postgis topology.AddFace: report an "uncovered point" on missing edges [RT-SIGTA] git-svn-id: http://svn.osgeo.org/postgis/trunk@6792 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/topology/sql/populate.sql b/topology/sql/populate.sql index 6a0a051c6..e43805383 100644 --- a/topology/sql/populate.sql +++ b/topology/sql/populate.sql @@ -484,9 +484,9 @@ BEGIN -- IF NOT ST_isEmpty(ST_SymDifference(bounds, all_edges)) THEN IF NOT ST_isEmpty(ST_Difference(bounds, all_edges)) THEN - RAISE EXCEPTION 'Polygon boundary is not fully defined by existing edges'; + RAISE EXCEPTION 'Polygon boundary is not fully defined by existing edges at or near point %', ST_AsText(ST_PointOnSurface(ST_Difference(bounds, all_edges))); ELSE - RAISE EXCEPTION 'Existing edges cover polygon boundary and more! (invalid topology?)'; + RAISE EXCEPTION 'Existing edges cover polygon boundary and more at or near point % (invalid topology?)', ST_AsText(ST_PointOnSurface(ST_Difference(all_edges, bounds))); END IF; END IF;