reserving 3395 for wm_figures

This commit is contained in:
Motiejus Jakštys 2021-05-19 22:57:51 +03:00 committed by Motiejus Jakštys
parent 2d55fcb8ed
commit 0c33c1388f
2 changed files with 3 additions and 2 deletions

View File

@ -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);

2
wm.sql
View File

@ -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;