From b4a0e9ed6d47a12cc44901176a7661edb252339e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sat, 3 Apr 2021 18:18:34 +0300 Subject: [PATCH] add i to ebendattrs --- IV/tests.sql | 3 +-- IV/wm.sql | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/IV/tests.sql b/IV/tests.sql index 952d149..3db9d0a 100644 --- a/IV/tests.sql +++ b/IV/tests.sql @@ -86,8 +86,7 @@ declare vbends geometry[]; vinflections geometry[]; begin - -- fig5 - select fix_gentle_inflections((select ways from bends where name='fig5')) into vinflections; + select array((select way from debug_wm where dbgname='fig5' and stage='cinflections')) into vinflections; perform assert_equals('LINESTRING(0 39,19 52,27 77)', st_astext(vinflections[1])); perform assert_equals('LINESTRING(19 52,27 77,26 104,41 115,49 115,65 103,65 75,53 45)', st_astext(vinflections[2])); perform assert_equals('LINESTRING(65 75,53 45,63 15,91 0)', st_astext(vinflections[3])); diff --git a/IV/wm.sql b/IV/wm.sql index dccc444..ec8b0c7 100644 --- a/IV/wm.sql +++ b/IV/wm.sql @@ -301,9 +301,10 @@ begin select (res.area*(0.75/res.cmp)) into res.adjsize; end if; if dbgname is not null then - insert into debug_wm (stage, dbgname, way, props) values( + insert into debug_wm (stage, dbgname, i, way, props) values( 'ebendattrs', dbgname, + i, bend, json_build_object( 'area', res.area,