<div dir="ltr"><span style="font-size:12.8px">Hello,</span><div style="font-size:12.8px"><br><div style="font-size:12.8px">I am using MapProxy 1.8.0, the problem is seen both running under Apache 2.2 and `<span style="font-size:12.8px">mapproxy-util serve-develop`.</span><br></div><div style="font-size:12.8px"><br></div><div><div style="font-size:12.8px">The "minimal" config reproducing the error (test.yaml) should end with such an image, with not data west of Bern (exactly on 600'000m), when using epsg:4326 (both WMS and WMTS)</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><img src="cid:ii_ieacggjg1_14fa95d0f5a7639b" width="400" height="209"><br>​<br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I did the following requests against <font face="monospace, monospace">mapproxy-util serve-develop --debug -b <a href="http://127.0.0.1:9001/" target="_blank">127.0.0.1:9001</a> mapproxy/test.yaml,</font><font face="arial, helvetica, sans-serif">using the mapproxy config in attachment </font><font face="monospace, monospace">(test.yaml)</font><br></div><div style="font-size:12.8px"><span class="im"><br><div><br></div><div><b>WMS</b></div><div><b><br></b></div><div><i><font color="#000000">Both the EPSG:4326 and EPSG:4258 have truncated images west of Bern</font></i></div><div><br></div><div>  <a href="http://localhost:9001/service?LAYERS=ch.swisstopo.pixelkarte-farbe_20151231&FORMAT=image%2Fjpeg&SRS=EPSG%3A4258&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&BBOX=3.2209693748826,44.022010038859,12.747055982558,48.753510009559&WIDTH=1208&HEIGHT=600" target="_blank">http://localhost:9001/service?LAYERS=ch.swisstopo.pixelkarte-farbe_20151231&FORMAT=image%2Fjpeg&SRS=EPSG%3A4258&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&BBOX=3.2209693748826,44.022010038859,12.747055982558,48.753510009559&WIDTH=1208&HEIGHT=600</a><br></div><div><br></div><div> <a href="http://localhost:9001/service?LAYERS=ch.swisstopo.pixelkarte-farbe_20151231&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&BBOX=3.796635204651,44.219155870071,13.322721812327,48.950655840771&WIDTH=1208&HEIGHT=600" target="_blank">http://localhost:9001/service?LAYERS=ch.swisstopo.pixelkarte-farbe_20151231&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&BBOX=3.796635204651,44.219155870071,13.322721812327,48.950655840771&WIDTH=1208&HEIGHT=600</a><br></div><div><br></div><div><br></div></span><span class="im"><div><br></div><div><i><font color="#000000">In the opposite, the image in EPSG:3857 is fine:</font></i></div><div><br></div><div>     <a href="http://localhost:9001/service?LAYERS=ch.swisstopo.pixelkarte-farbe_20151231&FORMAT=image%2Fjpeg&SRS=EPSG%3A3857&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&BBOX=368677.88243586,5636562.1333018,1499245.0927522,6198102.1384258&WIDTH=1208&HEIGHT=600" target="_blank">http://localhost:9001/service?LAYERS=ch.swisstopo.pixelkarte-farbe_20151231&FORMAT=image%2Fjpeg&SRS=EPSG%3A3857&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&BBOX=368677.88243586,5636562.1333018,1499245.0927522,6198102.1384258&WIDTH=1208&HEIGHT=600</a><br></div><div><br></div><div><br></div><div><br></div><div><br></div></span><span class="im"><div><br></div><div><b>WMTS</b></div><div><br></div><div><br></div><div><i><font color="#000000">As observed with WMS, data west of Bern are missing, as in these two tiles (EPSG:4326 and EPSG:4258)</font></i></div><div><br></div><div>   <a href="http://localhost:9001/wmts/1.0.0/ch.swisstopo.pixelkarte-farbe/default/20151231/epsg_4326/8/266/61.jpeg" target="_blank">http://localhost:9001/wmts/1.0.0/ch.swisstopo.pixelkarte-farbe/default/20151231/epsg_4326/8/266/61.jpeg</a><br></div><div><br></div><div>    <a href="http://localhost:9001/wmts/1.0.0/ch.swisstopo.pixelkarte-farbe/default/20151231/epsg_4258/8/266/61.jpeg" target="_blank">http://localhost:9001/wmts/1.0.0/ch.swisstopo.pixelkarte-farbe/default/20151231/epsg_4258/8/266/61.jpeg</a><br></div><div><br></div></span><div><div><i>In the opposite, the image in EPSG:3857 is fine, the whole area is displayed:</i><br></div><div><br></div><div>    <a href="http://localhost:9001/wmts/1.0.0/ch.swisstopo.pixelkarte-farbe/default/20151231/epsg_3857/8/133/90.jpeg" target="_blank">http://localhost:9001/wmts/1.0.0/ch.swisstopo.pixelkarte-farbe/default/20151231/epsg_3857/8/133/90.jpeg</a></div></div></div><div style="font-size:12.8px"><br></div><div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">So if I shift the meridian to the west, so that the whole area of interest is east of the meridian( from the official epsg file):</span></div><span class="im"><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><font face="monospace, monospace"><21781> +proj=somerc +lat_0=46.95240555555556 <b>+lon_0=7.439583333333333</b> +k_0=1 <b>+x_0=600000</b> +y_0=200000 +ellps=bessel +towgs84=674.4,15.1,405.3,0,0,0,0 +units=m +no_defs  <></font></span></div></span></div><span class="im"><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><span style="font-size:12.8px">into (something very unprecise)</span><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><span style="font-family:monospace,monospace;font-size:12.8px"><21781> +proj=somerc +lat_0=46.95240555555556 </span><b style="font-family:monospace,monospace;font-size:12.8px">+lon_0=6.0</b><span style="font-family:monospace,monospace;font-size:12.8px"> +k_0=1 </span><b style="font-family:monospace,monospace;font-size:12.8px">+x_0=450000 </b><span style="font-family:monospace,monospace;font-size:12.8px">+y_0=200000 +ellps=bessel +towgs84=674.4,15.1,405.3,0,0,0,0 +units=m +no_defs  <></span><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><font color="#000000">everything is fine, but that not the goal.</font></div></span></div><div style="font-size:12.8px"><font color="#000000"><br></font></div><div style="font-size:12.8px"><font color="#000000"><br></font></div><div style="font-size:12.8px"><pre style="white-space:pre-wrap"><font face="arial, helvetica, sans-serif" color="#000000">I hope, it is a bit clearer


Thank you for any hints

Marc</font></pre></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-09-01 16:53 GMT+02:00 Marc Monnerat <span dir="ltr"><<a href="mailto:procrastinatio@gmail.com" target="_blank">procrastinatio@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><p><span lang="FR-CH">Hello,</span></p>

<p><span lang="FR-CH"> </span>My goal is to reproject a WMTS source in EPSG:21781 into
EPSG:4326, as a WMTS service (or eventually a WMS service). This is working
fine for projection like EPSG:2056 (LV95), EPSG:3857 (webmercator) or EPSG:4258
(ETRS89). But using EPSG:4326, I get some strange result.</p><p></p>

<p>Checking the result in the MapProxy Demo page, using the
EPSG:4326 ans the WMS service:</p><p></p>

<p><a href="http://mf-chsdi3.dev.bgdi.ch/mom_fix_1594/mapproxy/demo/?srs=EPSG%3A4326&format=image%2Fpng&wms_layer=ch.swisstopo.zeitreihen_20031231" target="_blank">http://mf-chsdi3.dev.bgdi.ch/mom_fix_1594/mapproxy/demo/?srs=EPSG%3A4326&format=image%2Fpng&wms_layer=ch.swisstopo.zeitreihen_20031231</a></p><p></p>

<p>we find that there is *no* data West of the prime meridian
of (city of Bern, if you know Switzerland, 600'000m easting or about 7.5° West
in WGS84).</p><p></p>

<p>The same layer, using the WMTS service, displays the same
problem:<br></p><p></p>

<p><a href="http://codepen.io/procrastinatio/pen/XmWEZL?editors=001" target="_blank">http://codepen.io/procrastinatio/pen/XmWEZL?editors=001</a></p><p></p>

<p>The prime meridian is one of the vertical purple line.</p><p></p>

<p>In comparison, using EPSG:4258 (ETRS89), which is "almost"
identical to EPSG:4326, data are displayed correctly both side of the meridian, as shown in the demo</p><p></p>

<p><a href="http://mf-chsdi3.dev.bgdi.ch/mom_fix_1594/mapproxy/demo/?srs=EPSG%3A4258&format=image%2Fpng&wms_layer=ch.swisstopo.zeitreihen_20031231" target="_blank">http://mf-chsdi3.dev.bgdi.ch/mom_fix_1594/mapproxy/demo/?srs=EPSG%3A4258&format=image%2Fpng&wms_layer=ch.swisstopo.zeitreihen_20031231</a><br></p><p></p>

<p>We are using MapProxy Version 1.8.0 and the configuration
file is <a href="https://raw.githubusercontent.com/geoadmin/mf-chsdi3/master/mapproxy/mapproxy.yaml" target="_blank">https://raw.githubusercontent.com/geoadmin/mf-chsdi3/master/mapproxy/mapproxy.yaml</a>
(very long).</p><p><br></p><p></p>

<p>If anyone has a hint, I would be glad.</p><p><br></p><p></p>

<p>Thank you in advance!<br></p><p></p>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">-- Τα πάντα ῥεῖ καὶ οὐδὲν μένει<div><br><div><a href="http://map.geo.admin.ch/?Y=500459&X=117405&zoom=6&bgLayer=ch.swisstopo.pixelkarte-farbe&layers=ch.swisstopo.hiks-dufour&layers_opacity=1&layers_visibility=true&lang=fr" target="_blank">http://map.geo.admin.ch/</a></div></div></div>
</div>