fix dumping of geometries

This commit is contained in:
Motiejus Jakštys 2021-03-21 17:19:52 +02:00
parent 6e502de74b
commit 9ca2cbd2ec

View File

@ -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;