<div dir="ltr"><div>I'm trying to use MapProxy to present OpenStreetMap layers in a nonstandard projection, EPSG:3338 (Alaska Albers).  The end goal is to use this as a base layer in an app that adds other layers showing historical sea ice extent around Alaska, which is why this (or a similar polar projection) is needed.<br>

</div><div><br></div><div>Instead of a clean map, I'm seeing extreme distortion around the antimeridian/date line.  Screenshot of distortion around antimeridian/date line is here:</div><div><br></div><div><a href="https://github.com/ua-snap/mp-config/blob/master/distortion-example.png">https://github.com/ua-snap/mp-config/blob/master/distortion-example.png</a></div>

<div><br></div><div>For this test case, I'm using a barely-modified version of the included example configuration, only adding EPSG:3338 to the SRS that the WMS supports.  My configuration that recreates the image above is here:</div>

<div><br></div><div><a href="https://github.com/ua-snap/mp-config/blob/master/mapproxy.yaml">https://github.com/ua-snap/mp-config/blob/master/mapproxy.yaml</a></div><div><br></div><div>I've tried a few configuration variations within MapProxy and gotten the same results.  In particular, I configured things according to the directions here:</div>

<div><br></div><div><a href="http://mapproxy.org/docs/1.6.0/configuration_examples.html#reprojecting-tiles">http://mapproxy.org/docs/1.6.0/configuration_examples.html#reprojecting-tiles</a></div><div><br></div><div>That approach also yielded distortion.</div>

<div><br></div><div>I found some online posts stating that adding proj4 +over parameter to the epsg definitions could solve the issue, per this link:</div><div><a href="http://lists.osgeo.org/pipermail/mapproxy/2010-December/000301.html">http://lists.osgeo.org/pipermail/mapproxy/2010-December/000301.html</a></div>

<div><br></div><div>…but it didn't work.  To ensure that I was pointing at the correct proj4 definitions, I added the proj_data_dir parameter to MapProxy config and verified it was using the same definitions I was modifying -- it was using the correct file.</div>

<div><br></div><div>I was also careful to repeatedly clear out the cache during different configuration attempts, to prevent a case where a valid configuration was present but invalid cache data was being used.  No luck.</div>

<div><br></div><div>Software versions are:</div><div>MapProxy: 1.6.0</div><div>OS: CentOS 6.4 (Final)</div><div>Proj4: version 4.7.1</div><div><br></div><div>I'm using the serve-devel method for running MapProxy, with this command:</div>

<div>mapproxy-util serve-develop mapproxy.yaml<br></div><div><br></div><div>Am I seeing a rendering bug, or a misconfiguration issue within MapProxy?</div><div><br></div><div>Help greatly appreciated,</div><div>- Bruce</div>

<div><br></div>-- <br><div dir="ltr"><div><b>Bruce Crevensten</b></div><div><b><br></b></div><div><b>Senior Software Engineer<br></b></div><div><div>(SNAP) Scenarios Network for Alaska & Arctic Planning<br></div></div>

<div><div><a href="http://www.snap.uaf.edu/" target="_blank">www.snap.uaf.edu</a><br></div><div><br></div><div><b>Engineering Coordinator</b></div><div>(ACUASI) Alaska Center for Unmanned Aerial Systems Integration</div>


</div></div>
</div>