From 5bbeeb360a258f66068b879c2e8bf80e0f5e17a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sun, 28 Mar 2021 12:05:50 +0300 Subject: [PATCH] build bend_attrs also for zero-area bendsarea --- IV/wm.sql | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/IV/wm.sql b/IV/wm.sql index 020acb7..1873323 100644 --- a/IV/wm.sql +++ b/IV/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;