<div dir="ltr"><div>The client I am using is built off of the NASA WorldWind client app.  Based off of some of the forums from NASA I can see some of the resolutions that are being requested:</div><div> </div><div><strong>Level 0, Tile delta     36", 512 pixels, resolution 0.0703125     (=36/512)<br></strong>Level 1, Tile delta     18", 512 pixels, resolution 0.0.03515625 (=18/512)<br>Level 2, Tile delta       9", 512 pixels, resolution 0.017578125 (=9/512)<br>Level 3, Tile delta    4.5", 512 pixels, resolution 0.08789063<br><b>Level 4, Tile delta  2.25", 512 pixels, resolution 0.04394531</b><br>Level 5, Tile delta 1.125", 512 pixels, resolution 0.02197266<br>Level 6, Tile delta 0.562", 512 pixels, resolution 0.001098633<br>Level 7, Tile delta 0.28125", 512 pixels, resolution 0.000549316<br>Level 8, Tile delta 0.140625", 512 pixels, resolution 0.000274658<br><b>Level 9, Tile delta 0.0703125", 512 pixels, resolution 0.000137329</b></div><p><strong></strong> </p><div>I tried using the initial resolution and converted to metres using the mapproxy-util scales tool but the results did not prove anything useful.</div><div> </div><div>Also, I can see the config file that gets generated on my client side when accessing the WMS from MapProxy (I have attached it).  I also have attached the config file that gets generated when I access MapServer directly.</div><div> </div><div>From what I can see, the configurations are very similar but the "number of levels" are different.  Accessing MapServer gives me 20 levels (and the data looks correct) and MapProxy gives me 18 levels (and does not look correct).</div><div> </div><div>I attempted to force the grid to use 20 levels in MapProxy, but my understanding was 20 levels was the default anyways.  I also changed the file size to 512 and format to jpeg, but it didn't seem to change the appearance of the tiles.</div><div> </div><div>Any help going forward would be appreciated, I can provide more info if needed.</div><div> </div><div>Thanks!</div><div> </div><div>Andrew</div><div> </div><div> </div><div> </div><div> </div><div><span style="color:blue"></span> </div><div> </div><div> </div><div> </div><div> </div><div> </div><div><div style="color:blue;font-weight:normal"><?xml <br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 26, 2014 at 2:39 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">Hi,<br>
<span><br>
On 19.08.2014, at 19:00, andrew kovacs wrote:<br>
> I am having some trouble figuring out why my cached images in MapProxy are a different scale than the source images on MapServer.  I have an OSM cache generated on MapServer and I can query this service directly from my client.  The WMS feed produces clear images which are the correct scale for my map extent.  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.  The images that are generated at the client level are not clear.<br>
<br>
<br>
</span>You need to configure MapProxy to have a cache level with the same resolution that your client requests to get the best results. For example: If your client requests a 5m/px resolution but MapProxy has only cache levels for 4m/px and 8m/px, then it will take the 4m/px and resample that to the 5m/px resolution. You can change the resampling method to get better results, but it's still resampled.<br>
<br>
You can add a debug source to your layer to see which resolution was requested by your client. But this will only work if your client makes requests at fixed scales. If that's not the case, then check out the res_factor and sqrt2 option.<br>
<br>
<br>
<br>
<br>
Regards,<br>
Oliver<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Oliver Tonnhofer  | Omniscale GmbH & Co KG  | <a href="http://omniscale.com" target="_blank">http://omniscale.com</a><br>
OpenStreetMap WMS and tile services         | <a href="http://maps.omniscale.com" target="_blank">http://maps.omniscale.com</a><br>
<br>
<br>
<br>
</font></span></blockquote></div><br></div>