debugging goes on

main
Motiejus Jakštys 2021-05-19 22:57:46 +03:00 committed by Motiejus Jakštys
parent a2ef0a06bd
commit 8db38ac2a4
2 changed files with 13 additions and 3 deletions

View File

@ -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ų.

6
wm.sql
View File

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