mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-24 09:02:37 +00:00
Drop (SRF()).* constructs (#956)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9165 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
parent
0c5e19d99e
commit
9c1782c75c
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue