<div dir="ltr"><br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Seth Ellingson</b> <span dir="ltr"><<a href="mailto:seth.ellingson@blackbridge.com">seth.ellingson@blackbridge.com</a>></span><br>
Date: Mon, Jan 28, 2013 at 9:48 AM<br>Subject: Re: [MapProxy] wms layer name<br>To: Oliver Tonnhofer <<a href="mailto:olt@omniscale.de">olt@omniscale.de</a>><br><br><br><div dir="ltr"><div><div>Thanks for the info Oliver,<br>
</div>  I think I wasn't very clear with the explanation I gave.  What you said makes perfect sense, and isn't where I am having the problem.<br><br></div>I will mark the line that I am having the issue with. <br>

<div><div><div class="im"><br>sources:<br>  malawi:<br>    type: wms<br>    image: <br>      transparent_color: '#ffffff'<br>    coverage:<br>      bbox: [32, -18, 36, -9]<br>
      bbox_srs: 'EPSG:4326'<br>    req:<br>      url: <a href="http://localhost/cgi-bin/Malawi.cgi" target="_blank">http://localhost/cgi-bin/Malawi.cgi</a><br>      layers: Malawi<br>      transparent: true<br>layers:<br>

  - name: Mosaics<br>
    title: Mosaics<br>    layers:<br></div>      - name: Malawi  <---------------------------- This name must match the name of my cgi file<div class="im"><br>        title: WMS - Malawi<br>        sources: [malawi]<br>
<br><br></div></div><div>If I were to change the name of the layer (on the line that I have mentioned) to 'Malawi_2012' or anything else, the mosaic would not load.  It only loads if this layer name matches the name of my cgi file.  I guess the question is if there are any limitations on the name you can give a layer in the 'layer' section of the mapproxy config.<br>

<br></div><div>Thanks!<br></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 28, 2013 at 9:38 AM, Oliver Tonnhofer <span dir="ltr"><<a href="mailto:olt@omniscale.de" target="_blank">olt@omniscale.de</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br>
On 28.01.2013, at 16:34, Seth Ellingson wrote:<br>
<br>
> Hi all,<br>
>   I have recently discovered something very strange in regards to how I name my layers in MapProxy.  I am using MapServer as my wms provider, and therefore I am using cgi files to call the service.  Mapproxy is also installed on the same server.<br>


><br>
> ex. <a href="http://localhost/cgi-bin/layerName.cgi" target="_blank">http://localhost/cgi-bin/layerName.cgi</a><br>
><br>
> That's fine, but for the service to work in mapproxy, I must name the layer (in the 'layers' section of mapproxy.yaml) exactly what the cgi file is named, in this case it would have to be named 'layerName'.  Is this absolutely necessary? Or is there something that I am doing wrong?  I have several mosaics being served from this WMS server, and it appears to be the same with all of them.<br>


<br>
</div>MapProxy just adds the layers to the WMS URL. So it will request <a href="http://localhost/cgi-bin/layerName.cgi?service=WMS&request=GetMap&layers=layerName&." target="_blank">http://localhost/cgi-bin/layerName.cgi?service=WMS&request=GetMap&layers=layerName&.</a>..<br>


You should look at your CGI wrapper/MapServer config.<br>
<br>
<br>
Regards,<br>
Oliver<br>
<span><font color="#888888"><br>
--<br>
Oliver Tonnhofer    | Omniscale GmbH & Co KG    | <a href="http://omniscale.com" target="_blank">http://omniscale.com</a><br>
<a href="http://mapproxy.org" target="_blank">http://mapproxy.org</a> | <a href="https://github.com/olt" target="_blank">https://github.com/olt</a>    | @oltonn<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</font></span></blockquote></div><br></div>
</div></div></div><br></div>