From 9c1782c75c1c80b34a41744a0ccdb9c41d0a688b Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Mon, 13 Feb 2012 11:25:41 +0000 Subject: [PATCH] Drop (SRF()).* constructs (#956) git-svn-id: http://svn.osgeo.org/postgis/trunk@9165 b70326c6-7e19-0410-871a-916f4a2858ee --- topology/sql/gml.sql.in.c | 2 +- topology/sql/populate.sql.in.c | 2 +- topology/sql/sqlmm.sql.in.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/topology/sql/gml.sql.in.c b/topology/sql/gml.sql.in.c index 11cb7f20c..e3fdeb73e 100644 --- a/topology/sql/gml.sql.in.c +++ b/topology/sql/gml.sql.in.c @@ -192,7 +192,7 @@ BEGIN -- Construct the face geometry, then for each polygon: 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 -- Contents of a directed face are the list of edges diff --git a/topology/sql/populate.sql.in.c b/topology/sql/populate.sql.in.c index 4aab7ddc2..6146c9d3b 100644 --- a/topology/sql/populate.sql.in.c +++ b/topology/sql/populate.sql.in.c @@ -401,7 +401,7 @@ BEGIN RAISE EXCEPTION 'Face geometry must be a polygon'; END IF; - for rrec IN SELECT (ST_DumpRings(ST_ForceRHR(apoly))).* + for rrec IN SELECT (ST_DumpRings(ST_ForceRHR(apoly))).geom LOOP -- { -- -- Find all bounds edges, forcing right-hand-rule diff --git a/topology/sql/sqlmm.sql.in.c b/topology/sql/sqlmm.sql.in.c index 8f8dfb93c..3e654e3d4 100644 --- a/topology/sql/sqlmm.sql.in.c +++ b/topology/sql/sqlmm.sql.in.c @@ -65,7 +65,7 @@ BEGIN -- Construct the face geometry, then for each ring of each polygon: 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 = ' || face_id || ' OR right_face = ' || face_id; FOR rec IN EXECUTE sql