fix more syntax errors -- nemunas does not throw errors

This commit is contained in:
Motiejus Jakštys 2021-03-13 16:51:48 +02:00
parent 53dc925525
commit 09f8e01a0e

View File

@ -282,7 +282,7 @@ begin
if l_type = 'ST_LineString' then if l_type = 'ST_LineString' then
geoms = array[geom]; geoms = array[geom];
elseif l_type = 'ST_MultiLineString' then elseif l_type = 'ST_MultiLineString' then
geoms = array((select geom from st_dump(geom) order by path[1] desc)); geoms = array((select a.geom from st_dump(geom) a order by path[1] desc));
else else
raise 'Unknown geometry type %', l_type; raise 'Unknown geometry type %', l_type;
end if; end if;
@ -291,8 +291,8 @@ begin
mutated = true; mutated = true;
while mutated loop while mutated loop
bends = detect_bends(line); bends = detect_bends(line);
bends = fix_gentle_inflections(line); bends = fix_gentle_inflections(bends);
bends, mutated = self_crossing(bends); select * from self_crossing(bends) into bends, mutated;
end loop; end loop;
end loop; end loop;