From 9ca2cbd2ec7396f754d20e2ecd329ce283af1ce0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sun, 21 Mar 2021 17:19:52 +0200 Subject: [PATCH] fix dumping of geometries --- IV/wm.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IV/wm.sql b/IV/wm.sql index 83619e3..45178c2 100644 --- a/IV/wm.sql +++ b/IV/wm.sql @@ -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;