build bend_attrs also for zero-area bendsarea
This commit is contained in:
parent
863b23f2ef
commit
0de0a4204e
2
wm.sql
2
wm.sql
@ -289,6 +289,7 @@ begin
|
|||||||
select fourpi*area/(st_perimeter(polygon)^2) into cmp;
|
select fourpi*area/(st_perimeter(polygon)^2) into cmp;
|
||||||
if cmp > 0 then
|
if cmp > 0 then
|
||||||
select (area*(0.75/cmp)) into adjsize;
|
select (area*(0.75/cmp)) into adjsize;
|
||||||
|
end if;
|
||||||
if dbg then
|
if dbg then
|
||||||
insert into debug_wm (name, way, props) values(
|
insert into debug_wm (name, way, props) values(
|
||||||
'bend_attrs_' || i,
|
'bend_attrs_' || i,
|
||||||
@ -296,7 +297,6 @@ begin
|
|||||||
json_build_object('area', area, 'cmp', cmp, 'adjsize', adjsize)
|
json_build_object('area', area, 'cmp', cmp, 'adjsize', adjsize)
|
||||||
);
|
);
|
||||||
end if;
|
end if;
|
||||||
end if;
|
|
||||||
return next;
|
return next;
|
||||||
end loop;
|
end loop;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user