rename columns
This commit is contained in:
parent
6107a50f62
commit
e3c5cb7b1a
@ -11,9 +11,9 @@ begin
|
|||||||
end $$ LANGUAGE plpgsql;
|
end $$ LANGUAGE plpgsql;
|
||||||
|
|
||||||
-- to preview this somewhat conveniently in QGIS:
|
-- to preview this somewhat conveniently in QGIS:
|
||||||
-- stage || '_' || dbgname || ' i:' || coalesce(i,'<nil>') || ' j:'|| coalesce(j,'<nil>')
|
-- stage || '_' || dbgname || ' iter:' || iter || ' nbend:'|| nbend
|
||||||
drop table if exists debug_wm;
|
drop table if exists debug_wm;
|
||||||
create table debug_wm(stage text, dbgname text, i bigint, j bigint, way geometry, props json);
|
create table debug_wm(stage text, dbgname text, iter bigint, nbend bigint, way geometry, props json);
|
||||||
|
|
||||||
drop table if exists figures;
|
drop table if exists figures;
|
||||||
create table figures (name text, way geometry);
|
create table figures (name text, way geometry);
|
||||||
|
12
IV/wm.sql
12
IV/wm.sql
@ -299,9 +299,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, i, way, props) values(
|
insert into debug_wm (stage, dbgname, iter, nbend, way, props) values(
|
||||||
'ebendattrs',
|
'ebendattrs',
|
||||||
dbgname,
|
dbgname,
|
||||||
|
1,
|
||||||
i,
|
i,
|
||||||
bend,
|
bend,
|
||||||
json_build_object(
|
json_build_object(
|
||||||
@ -345,9 +346,10 @@ begin
|
|||||||
dbg_stage = 1;
|
dbg_stage = 1;
|
||||||
while mutated loop
|
while mutated loop
|
||||||
if dbgname is not null then
|
if dbgname is not null then
|
||||||
insert into debug_wm (stage, dbgname, i, way) values(
|
insert into debug_wm (stage, dbgname, iter, nbend, way) values(
|
||||||
'afigures',
|
'afigures',
|
||||||
dbgname,
|
dbgname,
|
||||||
|
1,
|
||||||
i,
|
i,
|
||||||
lines[i]
|
lines[i]
|
||||||
);
|
);
|
||||||
@ -356,7 +358,7 @@ begin
|
|||||||
bends = detect_bends(lines[i]);
|
bends = detect_bends(lines[i]);
|
||||||
|
|
||||||
if dbgname is not null then
|
if dbgname is not null then
|
||||||
insert into debug_wm(stage, dbgname, i, j, way) values(
|
insert into debug_wm(stage, dbgname, iter, nbend, way) values(
|
||||||
'bbends',
|
'bbends',
|
||||||
dbgname,
|
dbgname,
|
||||||
i,
|
i,
|
||||||
@ -368,7 +370,7 @@ begin
|
|||||||
bends = fix_gentle_inflections(bends);
|
bends = fix_gentle_inflections(bends);
|
||||||
|
|
||||||
if dbgname is not null then
|
if dbgname is not null then
|
||||||
insert into debug_wm(stage, dbgname, i, j, way) values(
|
insert into debug_wm(stage, dbgname, iter, nbend, way) values(
|
||||||
'cinflections',
|
'cinflections',
|
||||||
dbgname,
|
dbgname,
|
||||||
i,
|
i,
|
||||||
@ -380,7 +382,7 @@ begin
|
|||||||
select * from self_crossing(bends) into bends, mutated;
|
select * from self_crossing(bends) into bends, mutated;
|
||||||
|
|
||||||
if dbgname is not null then
|
if dbgname is not null then
|
||||||
insert into debug_wm(stage, dbgname, i, j, way) values(
|
insert into debug_wm(stage, dbgname, iter, nbend, way) values(
|
||||||
'dcrossings',
|
'dcrossings',
|
||||||
dbgname,
|
dbgname,
|
||||||
i,
|
i,
|
||||||
|
Loading…
Reference in New Issue
Block a user