<p dir="ltr">Hi Andrew,</p>
<p dir="ltr">I would look to see if DPI is a factor, it's possible that the requests to MapServer include a DPI parameter which my account for the difference.</p>
<p dir="ltr">Matt.</p>
<div class="gmail_quote">On 19 Aug 2014 18:00, "andrew kovacs" <<a href="mailto:andrewmrkovacs@gmail.com">andrewmrkovacs@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3"><font color="#000000"><font face="Calibri">Hi,</font></font></font></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3"><font color="#000000"><font face="Calibri">I am having some trouble figuring out why my cached images
in MapProxy are a different scale than the source images on MapServer.<span> </span>I have an OSM cache generated on MapServer
and I can query this service directly from my client.<span> </span>The WMS feed produces clear images which are
the correct scale for my map extent.<span>
</span>However, when I request the WMS feed through MapProxy, the tiles that
are generated (from the same source as the initial request) the scale appears
to be off.<span> </span>The images that are generated
at the client level are not clear.<span> </span></font></font></font></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font face="Calibri"><font size="3"><font color="#000000">When I use MapProxy/demo on the server the data appears to
be correct.<span> </span>It is only when I request
the WMS from a client that the scale is incorrect.</font></font></font></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3"><font color="#000000"><font face="Calibri">Here is my .yaml file:</font></font></font></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000">services:</font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span>demo:</font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span>tms:</font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span>wms:</font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span>md:</font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span>title: OSM for
MapProxy</font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span></font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font color="#000000" size="3"> </font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000">layers:</font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span>- name: mapfile</font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span>title: mapfile test </font></font></span></p>
<font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span>sources: [topo_cache]</font></font></span></p>
<font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font color="#000000" size="3"> </font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000">caches:</font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span>topo_cache:<span> </span></font></font></span></p>
<font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span>grids: [global_mercator_osm]</font></font></span></p>
<font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span>sources:
[topo_mapserv]</font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span>meta_buffer: 10 </font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span>meta_size: [4, 4]</font></font></span></p>
<font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span>format: image/png</font></font></span></p>
<font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span>max_shrink_factor: 1 </font></font></span></p>
<font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span>request_format:
image/png</font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span>
</span>link_single_color_images: true</font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span>#disable_storage: true</font></font></span></p>
<font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font color="#000000" size="3"> </font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font color="#000000" size="3"> </font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000">grids:</font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span>global_mercator_osm:</font></font></span></p>
<font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span><span> </span>base: GLOBAL_GEODETIC</font></font></span></p>
<font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span>num_levels: 19</font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font color="#000000" size="3"> </font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000">sources:</font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span>topo_mapserv:</font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span>type: mapserver</font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span>req:</font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span>layers: default</font></font></span></p>
<font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span>map:
**************************.map</font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span>concurrent_requests: 4</font></font></span></p>
<font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span>mapserver:</font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span>binary:
/usr/lib/cgi-bin/mapserv</font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span style="font-family:"Courier New""><font size="3"><font color="#000000"><span> </span>working_dir:
/2T/mapproxy/mapserver</font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font color="#000000" size="3" face="Calibri"> </font></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3"><font color="#000000"><font face="Calibri">I have sample images as well but they are too large for the
post..</font></font></font></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font face="Calibri"><font size="3"><font color="#000000">Any help would be much appreciated.<span> </span>I have playing with resolutions, tile sizes,
different grids, image resampling etc.. without any success.</font></font></font></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3"><font color="#000000"><font face="Calibri">Thanks!</font></font></font></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3"><font color="#000000"><font face="Calibri">Andrew</font></font></font></p><font color="#000000" size="3" face="Times New Roman">
</font></div>
<br>_______________________________________________<br>
MapProxy mailing list<br>
<a href="mailto:MapProxy@lists.osgeo.org">MapProxy@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapproxy" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapproxy</a><br></blockquote></div>