From d028ad2ff0cedeab76101323ed133e55016e1c7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Wed, 19 May 2021 22:57:47 +0300 Subject: [PATCH] debugging multilinestrings --- tests.sql | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests.sql b/tests.sql index 9ee488a..ba8db29 100644 --- a/tests.sql +++ b/tests.sql @@ -128,9 +128,6 @@ begin 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'); - raise notice 'input 1: %', array_length(elems1, 1); - raise notice 'input 2: %', array_length(elems2, 1); - foreach elem in array elems1 loop raise notice 'elem 1: %', st_astext(elem); end loop; @@ -140,8 +137,10 @@ begin 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(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( '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)',