add i to ebendattrs
This commit is contained in:
parent
125392f165
commit
7a567f1b1a
@ -86,8 +86,7 @@ declare
|
|||||||
vbends geometry[];
|
vbends geometry[];
|
||||||
vinflections geometry[];
|
vinflections geometry[];
|
||||||
begin
|
begin
|
||||||
-- fig5
|
select array((select way from debug_wm where dbgname='fig5' and stage='cinflections')) into vinflections;
|
||||||
select fix_gentle_inflections((select ways from bends where name='fig5')) into vinflections;
|
|
||||||
perform assert_equals('LINESTRING(0 39,19 52,27 77)', st_astext(vinflections[1]));
|
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(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]));
|
perform assert_equals('LINESTRING(65 75,53 45,63 15,91 0)', st_astext(vinflections[3]));
|
||||||
|
3
wm.sql
3
wm.sql
@ -301,9 +301,10 @@ begin
|
|||||||
select (res.area*(0.75/res.cmp)) into res.adjsize;
|
select (res.area*(0.75/res.cmp)) into res.adjsize;
|
||||||
end if;
|
end if;
|
||||||
if dbgname is not null then
|
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',
|
'ebendattrs',
|
||||||
dbgname,
|
dbgname,
|
||||||
|
i,
|
||||||
bend,
|
bend,
|
||||||
json_build_object(
|
json_build_object(
|
||||||
'area', res.area,
|
'area', res.area,
|
||||||
|
Loading…
Reference in New Issue
Block a user