]> granicus.if.org Git - postgis/commitdiff
topology.AddFace: report an "uncovered point" on missing edges [RT-SIGTA]
authorSandro Santilli <strk@keybit.net>
Wed, 9 Feb 2011 16:36:45 +0000 (16:36 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 9 Feb 2011 16:36:45 +0000 (16:36 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6792 b70326c6-7e19-0410-871a-916f4a2858ee

topology/sql/populate.sql

index 6a0a051c6f4383633340d640876b54bc2d8659ea..e438053839f035e6a7741c76e66881b8c90812ad 100644 (file)
@@ -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;