[MapProxy] Cannot Reproject Tiles from Mercator to EPSG:4326 / GLOBAL_GEODETIC
Marc Schenke
marcschenke at hotmail.com
Fri Nov 18 04:50:42 PST 2016
Dear list,
my goal is to render map tiles from an osm database with Tilemill in two different styles (lowdetail and highdetail) and serve them in different projections via MapProxy (1.9.0). Exporting the tiles as mbtiles and serving them in Webmercator/Mercator works so far. I was told Mapproxy can reproject and cache tiles on the fly but i cannot get the reprojection from WEBMERCATOR to GLOBAL_GEODETIC to work with the configuration listed below. Maybe i missed something? I also tried another configuration based on the Example here https://mapproxy.org/docs/latest/configuration_examples.html#reprojecting-tiles. But the result looks similar, i can only see the lower half of the worldmap. After changing the config i also cleared the browser image cache.
Do i need to install specific software modules for this to work? Please push me in the right direction. Below some specific information:
Map pictures from both projections in the demo service:
EPSG:3857 https://owncloud.nowcast.de/index.php/s/K3buSnz5XN9xdlf
EPSG:4326 https://owncloud.nowcast.de/index.php/s/OS2mMmFclQAXnxe
Here is the projection used for the tiles:
+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over
And the mapproxy.yaml:
services:
demo:
tms:
use_grid_names: true
#origin for /tiles service
origin: nw
layers:
- name: linetview_ld
title: LINET view (Low Detail)
sources: [lowdetail_cache]
- name: linetview_hd
title: LINET view (High Detail)
sources: [highdetail_cache]
caches:
lowdetail_cache:
grids: [epsg3857, epsg4326]
sources: []
cache:
type: mbtiles
filename: /home/mapproxy/mapproxy/ma-linetview-ld.mbtiles
highdetail_cache:
grids: [epsg3857, epsg4326]
sources: []
cache:
type: mbtiles
filename: /home/mapproxy/mapproxy/ma-linetview-hd.mbtiles
grids:
epsg3857:
base: GLOBAL_WEBMERCATOR
origin: sw
epsg4326:
base: GLOBAL_GEODETIC
#res_factor: 'sqrt2'
globals:
image:
resampling: bicubic
Thanks in advance!
Kind regards,
Marc Schenke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20161118/6314fdbe/attachment.html>
More information about the MapProxy
mailing list