fix dumping of geometries

This commit is contained in:
Motiejus Jakštys 2021-05-19 22:57:46 +03:00 committed by Motiejus Jakštys
parent 7a661f4dfa
commit a2ef0a06bd

4
wm.sql
View File

@ -319,9 +319,9 @@ begin
if l_type = 'ST_LineString' then
lines = array[geom];
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
raise 'Unknown geometry type %', l_type;
raise 'Unsupported geometry type %', l_type;
end if;
i = 1;