Drop (SRF()).* constructs (#956)

git-svn-id: http://svn.osgeo.org/postgis/trunk@9165 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Sandro Santilli 2012-02-13 11:25:41 +00:00
parent 0c5e19d99e
commit 9c1782c75c
3 changed files with 3 additions and 3 deletions

View file

@ -192,7 +192,7 @@ BEGIN
-- Construct the face geometry, then for each polygon: -- Construct the face geometry, then for each polygon:
FOR rec IN SELECT (ST_DumpRings((ST_Dump(ST_ForceRHR( FOR rec IN SELECT (ST_DumpRings((ST_Dump(ST_ForceRHR(
topology.ST_GetFaceGeometry(toponame, face_id)))).geom)).* topology.ST_GetFaceGeometry(toponame, face_id)))).geom)).geom
LOOP LOOP
-- Contents of a directed face are the list of edges -- Contents of a directed face are the list of edges

View file

@ -401,7 +401,7 @@ BEGIN
RAISE EXCEPTION 'Face geometry must be a polygon'; RAISE EXCEPTION 'Face geometry must be a polygon';
END IF; END IF;
for rrec IN SELECT (ST_DumpRings(ST_ForceRHR(apoly))).* for rrec IN SELECT (ST_DumpRings(ST_ForceRHR(apoly))).geom
LOOP -- { LOOP -- {
-- --
-- Find all bounds edges, forcing right-hand-rule -- Find all bounds edges, forcing right-hand-rule

View file

@ -65,7 +65,7 @@ BEGIN
-- Construct the face geometry, then for each ring of each polygon: -- Construct the face geometry, then for each ring of each polygon:
sql := 'SELECT (ST_DumpRings((ST_Dump(ST_ForceRHR(' sql := 'SELECT (ST_DumpRings((ST_Dump(ST_ForceRHR('
|| 'ST_BuildArea(ST_Collect(geom))))).geom)).* FROM ' || 'ST_BuildArea(ST_Collect(geom))))).geom)).geom FROM '
|| quote_ident(toponame) || '.edge_data WHERE left_face = ' || quote_ident(toponame) || '.edge_data WHERE left_face = '
|| face_id || ' OR right_face = ' || face_id; || face_id || ' OR right_face = ' || face_id;
FOR rec IN EXECUTE sql FOR rec IN EXECUTE sql