fix dumping of geometries
This commit is contained in:
parent
7a661f4dfa
commit
a2ef0a06bd
4
wm.sql
4
wm.sql
@ -319,9 +319,9 @@ begin
|
|||||||
if l_type = 'ST_LineString' then
|
if l_type = 'ST_LineString' then
|
||||||
lines = array[geom];
|
lines = array[geom];
|
||||||
elseif l_type = 'ST_MultiLineString' then
|
elseif l_type = 'ST_MultiLineString' then
|
||||||
lines = array((select a.geom from st_dump(geom) a order by path[1] desc));
|
lines = array((select a.geom from st_dump(geom) a order by path[1] asc));
|
||||||
else
|
else
|
||||||
raise 'Unknown geometry type %', l_type;
|
raise 'Unsupported geometry type %', l_type;
|
||||||
end if;
|
end if;
|
||||||
|
|
||||||
i = 1;
|
i = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user