remove redundant initializations
This commit is contained in:
parent
ff1dd7af96
commit
50df7bc21c
4
wm.sql
4
wm.sql
@ -254,8 +254,6 @@ declare
|
|||||||
j int4;
|
j int4;
|
||||||
multi geometry;
|
multi geometry;
|
||||||
begin
|
begin
|
||||||
mutated = false;
|
|
||||||
|
|
||||||
<<bendloop>>
|
<<bendloop>>
|
||||||
for i in 1..array_length(bends, 1) loop
|
for i in 1..array_length(bends, 1) loop
|
||||||
continue when abs(inflection_angle(bends[i])) <= pi;
|
continue when abs(inflection_angle(bends[i])) <= pi;
|
||||||
@ -312,7 +310,6 @@ declare
|
|||||||
p2 geometry;
|
p2 geometry;
|
||||||
p3 geometry;
|
p3 geometry;
|
||||||
begin
|
begin
|
||||||
angle = 0;
|
|
||||||
for p0 in select geom from st_dumppoints(bend) order by path[1] asc loop
|
for p0 in select geom from st_dumppoints(bend) order by path[1] asc loop
|
||||||
p3 = p2;
|
p3 = p2;
|
||||||
p2 = p1;
|
p2 = p1;
|
||||||
@ -492,7 +489,6 @@ begin
|
|||||||
);
|
);
|
||||||
end if;
|
end if;
|
||||||
|
|
||||||
|
|
||||||
if mutated then
|
if mutated then
|
||||||
lines[i] = st_linemerge(st_union(bends));
|
lines[i] = st_linemerge(st_union(bends));
|
||||||
stagenum = stagenum + 1;
|
stagenum = stagenum + 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user