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