<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>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.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Best regards<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Max Stephan<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> atrawog@gmail.com [mailto:atrawog@gmail.com] <b>On Behalf Of </b>Andreas Trawoeger<br><b>Sent:</b> 19 January 2011 15:50<br><b>To:</b> Max Stephan<br><b>Cc:</b> Oliver Tonnhofer; mapproxy@lists.osgeo.org<br><b>Subject:</b> Re: [MapProxy] Reprojecting google maps<o:p></o:p></span></p></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><p class=MsoNormal>2011/1/19 Max Stephan &lt;<a href="mailto:max.stephan@gmx.net">max.stephan@gmx.net</a>&gt;<o:p></o:p></p><p class=MsoNormal>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.<br>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?<o:p></o:p></p><div><p class=MsoNormal><br><br>Reprojecting from EPSG 4326 to 900913 is something that can be easily done with MapProxy.<br>All you have to do is to configure your sources and services in mapproxy.yaml with the appropriate srs:<br><br>services:<br>&nbsp; demo:<br>&nbsp; kml:<br>&nbsp; tms:<br>&nbsp; wms:<br>&nbsp;&nbsp;&nbsp; srs: ['EPSG:4326', 'EPSG:900913']<br>&nbsp;&nbsp;&nbsp; image_formats: ['image/png']<br>&nbsp;&nbsp;&nbsp; md:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; title: Bluemarble<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; abstract: Bluemarble Next Generation<br>&nbsp;<br>layers:<br>&nbsp; - BMNG_09:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; title: NASA Bluemarble Next Generation September<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sources: [mapnik_bmng09_cache]<br><br>caches:<br>&nbsp; mapnik_bmng09_cache:<br>&nbsp;&nbsp;&nbsp; grids: [EPSG_4326_World,EPSG_900913_World]<br>&nbsp;&nbsp;&nbsp; sources: [mapnik_bmng09_wms] <br>&nbsp;&nbsp;&nbsp; link_single_color_images: true<br>&nbsp;&nbsp;&nbsp; minimize_meta_requests: true<br>&nbsp;&nbsp;&nbsp;&nbsp; <br>sources:<br>&nbsp; mapnik_bmng09_wms:<br>&nbsp;&nbsp;&nbsp; type: wms<br>&nbsp;&nbsp;&nbsp; supported_srs: ['EPSG:4326']<br>&nbsp;&nbsp;&nbsp; req:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; url: <a href="http://localhost:8000/">http://localhost:8000/</a>?<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; layers: bmng200409<br><br>grids:<br>&nbsp; EPSG_4326_World:<br>&nbsp;&nbsp;&nbsp; base: GLOBAL_GEODETIC<br>&nbsp;&nbsp;&nbsp; srs: 'EPSG:4326'<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp; EPSG_900913_World:<br>&nbsp;&nbsp;&nbsp; base: GLOBAL_MERCATOR<br>&nbsp;&nbsp;&nbsp; srs: 'EPSG:900913'<br><br><br>cu andreas <o:p></o:p></p></div></div></div></body></html>