From ef7c679a3f7921fb8305b4b7d86ab94740cbe81f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Thu, 13 May 2021 22:39:08 +0300 Subject: [PATCH] reserving 3395 for wm_figures --- IV/test.sql | 3 ++- IV/wm.sql | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/IV/test.sql b/IV/test.sql index 0e7cb20..a91c2f1 100644 --- a/IV/test.sql +++ b/IV/test.sql @@ -49,7 +49,8 @@ insert into wm_figures (name, way) values ('fig6-combi', ST_Union( insert into wm_figures (name, way) values ('selfcrossing-1-rev',ST_Reverse( ST_Translate((select way from wm_figures where name='selfcrossing-1'), 0, 60))); -update wm_figures set way=st_setsrid(way, 3857); +-- 3395 is now "reserved" for figures. +update wm_figures set way=st_setsrid(way, 3395); delete from wm_debug where name in (select distinct name from wm_figures); delete from wm_demo where name in (select distinct name from wm_figures); diff --git a/IV/wm.sql b/IV/wm.sql index 0d95f75..9f2b903 100644 --- a/IV/wm.sql +++ b/IV/wm.sql @@ -464,7 +464,7 @@ begin st_project( st_transform(point, 4326)::geography, st_distance(midpoint, point) * sss, azimuth)::geometry, - 3857 + st_srid(midpoint) ); bend = st_setpoint(bend, i-1, point); end loop;