reserving 3395 for wm_figures

This commit is contained in:
Motiejus Jakštys 2021-05-13 22:39:08 +03:00
parent b0d4158481
commit ef7c679a3f
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( 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))); 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_debug where name in (select distinct name from wm_figures);
delete from wm_demo where name in (select distinct name from wm_figures); delete from wm_demo where name in (select distinct name from wm_figures);

View File

@ -464,7 +464,7 @@ begin
st_project( st_project(
st_transform(point, 4326)::geography, st_transform(point, 4326)::geography,
st_distance(midpoint, point) * sss, azimuth)::geometry, st_distance(midpoint, point) * sss, azimuth)::geometry,
3857 st_srid(midpoint)
); );
bend = st_setpoint(bend, i-1, point); bend = st_setpoint(bend, i-1, point);
end loop; end loop;