From a2ef0a06bd8a3fda6af73345ad82c59d64b03c08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Wed, 19 May 2021 22:57:46 +0300 Subject: [PATCH] fix dumping of geometries --- wm.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wm.sql b/wm.sql index 83619e3..45178c2 100644 --- a/wm.sql +++ b/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;