[MapProxy] Cannot Reproject Tiles from Mercator to EPSG:4326 / GLOBAL_GEODETIC

Oliver Tonnhofer olt at omniscale.de
Tue Nov 29 07:21:05 PST 2016


you should have a separate cache for each projection. Look at the example https://mapproxy.org/docs/latest/configuration_examples.html#reprojecting-tiles
You can add these caches to a single layer with the tile_sources option: https://mapproxy.org/docs/latest/configuration.html#tile-sources


Oliver Tonnhofer  | Omniscale GmbH & Co KG  | https://omniscale.com
OpenStreetMap WMS and tile services         | https://maps.omniscale.com

> On 18.11.2016, at 13:50, Marc Schenke <marcschenke at hotmail.com> wrote:
> 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:
>     origin: sw
>   epsg4326:
>     #res_factor: 'sqrt2'
> globals:
>   image:
>     resampling: bicubic
> Thanks in advance!
> Kind regards,
> Marc Schenke
> _______________________________________________
> MapProxy mailing list
> MapProxy at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapproxy

More information about the MapProxy mailing list