[MapProxy] Reprojecting google maps

Max Stephan max.stephan at gmx.net
Wed Jan 19 10:10:24 EST 2011


Thanks for your reply, Andreas. I know that it´s possible to reproject from 4326 to 900913 with mapproxy. But as mentioned the user can add every WMS-Server he´d like to see in the application (that means he doesn´t choose from a limited list but can enter whatever he wants). So we cannot take the static approach and add them to the yaml-File manually. We would need some kind of script/interface which adds the given WMS-Server (with the requested layer maybe) to mapproxy temporarily.

Best regards
Max Stephan

From: atrawog at gmail.com [mailto:atrawog at gmail.com] On Behalf Of Andreas Trawoeger
Sent: 19 January 2011 15:50
To: Max Stephan
Cc: Oliver Tonnhofer; mapproxy at lists.osgeo.org
Subject: Re: [MapProxy] Reprojecting google maps


2011/1/19 Max Stephan <max.stephan at gmx.net<mailto:max.stephan at gmx.net>>
We don´t have an agreement with google concerning this. The reason why we want to reproject the google-maps-Data is that we are overlaying it with several WMS-Layers in our Open-Layers-based application. No problem so far but the users are able to add their own WMS-Servers and some of them don´t support EPSG:900913 but I guess each of them supports EPSG:4326.
So our second approach is to reproject data from those servers to EPSG:900913 but the problem is that this is not really working client-side (there is one approach using gdal-warp.js but it´s really slow and causes browser-crashes). Would it be possible to add those WMS-Servers to mapproxy temporarily to reproject them there? Is there an interface for such use cases?


Reprojecting from EPSG 4326 to 900913 is something that can be easily done with MapProxy.
All you have to do is to configure your sources and services in mapproxy.yaml with the appropriate srs:

services:
  demo:
  kml:
  tms:
  wms:
    srs: ['EPSG:4326', 'EPSG:900913']
    image_formats: ['image/png']
    md:
      title: Bluemarble
      abstract: Bluemarble Next Generation

layers:
  - BMNG_09:
      title: NASA Bluemarble Next Generation September
      sources: [mapnik_bmng09_cache]

caches:
  mapnik_bmng09_cache:
    grids: [EPSG_4326_World,EPSG_900913_World]
    sources: [mapnik_bmng09_wms]
    link_single_color_images: true
    minimize_meta_requests: true

sources:
  mapnik_bmng09_wms:
    type: wms
    supported_srs: ['EPSG:4326']
    req:
      url: http://localhost:8000/?
      layers: bmng200409

grids:
  EPSG_4326_World:
    base: GLOBAL_GEODETIC
    srs: 'EPSG:4326'

  EPSG_900913_World:
    base: GLOBAL_MERCATOR
    srs: 'EPSG:900913'


cu andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapproxy/attachments/20110119/cc896c20/attachment.html


More information about the MapProxy mailing list