From 728665e590f03bdee4120b6c51bf5e6d1f4ab2f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 23 Mar 2021 18:28:36 +0200 Subject: [PATCH] debugging goes on --- IV/referatui.txt | 10 ++++++++++ IV/wm.sql | 6 +++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/IV/referatui.txt b/IV/referatui.txt index 74aa28f..329faf5 100644 --- a/IV/referatui.txt +++ b/IV/referatui.txt @@ -48,3 +48,13 @@ analizė Lietuvos upėms. - Visinčia ir Šalčia (1:25000, 1:50000). - Žeimena ir Lakaja (1:50000 ?). - Lietuvos kontūras. + + +Kitam kartui: +- smulkiai surašyti darbo struktūrą ir atsiųsti dėstytojui. + +Pristatymui reikės akcentuiti: +- naujumas +- aktualumas +- problema +- max 15 skaidrių. diff --git a/IV/wm.sql b/IV/wm.sql index 45178c2..a2b804d 100644 --- a/IV/wm.sql +++ b/IV/wm.sql @@ -282,7 +282,7 @@ 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; end if; @@ -330,8 +330,8 @@ begin while mutated loop execute format('drop table if exists demo_%safigures', i); execute format('create table demo_%safigures (way geometry)', i); - -- if anyone has suggestions how to insert a variable to a table without such - -- hackery, I'll be glad to know + -- if anyone has suggestions how to insert a variable to a table without + -- such hackery, I'll be glad to know execute format('insert into demo_%safigures select $1;', i) using (select unnest(array[line])); bends = detect_bends(line); execute format('drop table if exists demo_%sbbends', i);