[MapProxy] Reprojecting google maps

Andreas Trawoeger atrawog at datenscheibe.org
Wed Jan 19 09:50:14 EST 2011


2011/1/19 Max Stephan <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/bee5fadc/attachment.html


More information about the MapProxy mailing list