From 85c22af8f51fa84eaf86078f51d79d89485630e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Wed, 19 May 2021 22:57:48 +0300 Subject: [PATCH] bring back proper salvis --- Makefile | 6 +++--- tests-rivers.sql | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 8a51e95..08ada53 100644 --- a/Makefile +++ b/Makefile @@ -117,13 +117,13 @@ selfcrossing-1-after_1SELECT = wm_debug where name='selfcrossing-1' AND stage='d selfcrossing-1-after_2SELECT = wm_debug where name='selfcrossing-1' AND stage='bbends' AND gen=1 selfcrossing-1-after_2LINESTYLE = invisible -salvis-25k_1SELECT = wm_rivers where name='Šalčia' OR name='Visinčia' +salvis-25k_1SELECT = wm_visuals where name='salvis' salvis-25k_WIDTHDIV = 1 -salvis-50k_1SELECT = wm_rivers where name='Šalčia' OR name='Visinčia' +salvis-50k_1SELECT = wm_visuals where name='salvis' salvis-50k_WIDTHDIV = 2 -salvis-250k_1SELECT = wm_rivers where name='Šalčia' OR name='Visinčia' +salvis-250k_1SELECT = wm_visuals where name='salvis' salvis-250k_WIDTHDIV = 10 .faux_test-rivers: tests-rivers.sql wm.sql Makefile .faux_db diff --git a/tests-rivers.sql b/tests-rivers.sql index d3bc410..cab1e54 100644 --- a/tests-rivers.sql +++ b/tests-rivers.sql @@ -22,6 +22,7 @@ begin end $$ language plpgsql; +delete from wm_visuals where name in ('salvis'); insert into wm_visuals(name, way) values('salvis', ( select st_intersection( (select st_union(way) from wm_rivers where name in ('Šalčia', 'Visinčia')), @@ -47,4 +48,4 @@ end $$ language plpgsql; delete from wm_debug where name in (select distinct name from wm_rivers); delete from wm_demo where name in (select distinct name from wm_rivers); -insert into wm_demo (name, way) select name, ST_SimplifyWM(way, name) from wm_rivers; +--insert into wm_demo (name, way) select name, ST_SimplifyWM(way, name) from wm_rivers;