debugging multilinestrings

This commit is contained in:
Motiejus Jakštys 2021-04-04 07:56:21 +03:00
parent be8d8db454
commit f81fcc02e9

View File

@ -128,9 +128,6 @@ begin
elems1 = array((select way from debug_wm where stage='cinflections' and name='fig6-combi' and iter=1)); elems1 = array((select way from debug_wm where stage='cinflections' and name='fig6-combi' and iter=1));
elems2 = (select ways from inflections where name='fig6-combi'); elems2 = (select ways from inflections where name='fig6-combi');
raise notice 'input 1: %', array_length(elems1, 1);
raise notice 'input 2: %', array_length(elems2, 1);
foreach elem in array elems1 loop foreach elem in array elems1 loop
raise notice 'elem 1: %', st_astext(elem); raise notice 'elem 1: %', st_astext(elem);
end loop; end loop;
@ -140,8 +137,10 @@ begin
end loop; end loop;
select (self_crossing(elems1)).* into vcrossings, mutated;
--select (self_crossing(elems2)).* into vcrossings, mutated;
--select (self_crossing((select ways from inflections where name='fig6-combi'))).* into vcrossings, mutated; --select (self_crossing((select ways from inflections where name='fig6-combi'))).* into vcrossings, mutated;
select (self_crossing(array((select way from debug_wm where stage='cinflections' and name='fig6-combi')))).* into vcrossings, mutated; --select (self_crossing(array((select way from debug_wm where stage='cinflections' and name='fig6-combi')))).* into vcrossings, mutated;
perform assert_equals(true, mutated); perform assert_equals(true, mutated);
perform assert_equals( perform assert_equals(
'LINESTRING(84 137,91 149,114 154,120 135,125 129,141 129,147 122,164 137,171 149,194 154,200 135,205 129,221 129,227 122)', 'LINESTRING(84 137,91 149,114 154,120 135,125 129,141 129,147 122,164 137,171 149,194 154,200 135,205 129,221 129,227 122)',