debugging goes on

This commit is contained in:
Motiejus Jakštys 2021-03-23 18:28:36 +02:00
parent 9ca2cbd2ec
commit 728665e590
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ų.

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