Hello Mapproxy-world,<div><br></div><div>Relatively new to Mapproxy, but very impressed about the capabilities and functionality of this "tool". The ease of configuration and the ability to bundle different sources (and types) will help me a lot here.</div>
<div><br></div><div>The one and only issue I have, is our Dutch RD projection, EPSG 28992. One way or another, Mapproxy doesn't like it. It returns an "internal error" on the Demo and via the WMS service when requesting a map with this projection. EPSG 900913, 4326 and so on work fine (but with projection errors as I need 28992).</div>
<div><br></div><div>The source is 28992, in this test WMTS at <a href="http://geodata.nationaalgeoregister.nl/tiles/service/wmts/brtachtergrondkaart/">http://geodata.nationaalgeoregister.nl/tiles/service/wmts/brtachtergrondkaart/</a>.</div>
<div>The source URL in my configuration is as follows:</div><div><br></div><div>sources:</div><div> [...]</div><div>     Top10NLwmts:</div><div>    type: tile</div><div>    supported_srs: ['EPSG:28992']</div><div>
    url: <a href="http://geodata.nationaalgeoregister.nl/tiles/service/wmts/brtachtergrondkaart/?LAYER=brtachtergrondkaart&SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&TILEMATRIXSET=EPSG%%3A28992&TILEMATRIX=EPSG%%3A28992%%3A%(z)s&TILEROW=%(y)s&TILECOL=%(x)s&FORMAT=image%%2Fpng">http://geodata.nationaalgeoregister.nl/tiles/service/wmts/brtachtergrondkaart/?LAYER=brtachtergrondkaart&SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&TILEMATRIXSET=EPSG%%3A28992&TILEMATRIX=EPSG%%3A28992%%3A%(z)s&TILEROW=%(y)s&TILECOL=%(x)s&FORMAT=image%%2Fpng</a></div>
<div><br></div><div>It retrieves the data and it is visible on the demo pages (in 900913 and 4326).</div><div><br></div><div>Grids:</div><div><div>grids:</div><div>  applas_grid:  </div><div>#     bbox: [5.927811,51.997604,6.0,52.5]</div>
<div>     srs: EPSG:900913</div><div>     base: GLOBAL_GEODETIC</div><div>     origin: nw</div><div>     #tile_size: [256, 256]</div></div><div><br></div><div>And in my services config:</div><div><div> wms:</div><div>    srs: ['EPSG:900913','EPSG:4326','EPSG:28992']</div>
</div><div><br></div><div>Now, when requesting the demo (or service) on 28992, it gives a HTTP 500 (no further info).</div><div>The debug window of Python reads:</div><div><br></div><div><div>Traceback (most recent call last):</div>
<div>  File "C:\Python27\virtual\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\</div><div>wsgiapp.py", line 133, in __call__</div><div>    resp = self.handlers[handler_name].handle(req)</div><div>  File "C:\Python27\virtual\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\</div>
<div>service\demo.py", line 76, in handle</div><div>    demo = self._render_wms_template('demo/wms_demo.html', req)</div><div>  File "C:\Python27\virtual\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\</div>
<div>service\demo.py", line 159, in _render_wms_template</div><div>    bbox = layer.extent.bbox_for(SRS(srs))</div><div>  File "C:\Python27\virtual\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\</div><div>
srs.py", line 88, in SRS</div><div>    srs = _SRS(srs_code)</div><div>  File "C:\Python27\virtual\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\</div><div>srs.py", line 121, in __init__</div><div>    self.proj = Proj(init='epsg:%d' % epsg_num)</div>
<div>  File "C:\Python27\virtual\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\</div><div>platform\cpython\proj.py", line 172, in __init__</div><div>    (proj_def, init, libproj.pj_strerrno(errno)))</div><div>
ProjInitError: error initializing Proj(proj_def=None, init='epsg:28992'): no sys</div><div>tem list, errno: 2</div></div><div><br></div><div><div>Traceback (most recent call last):</div><div>  File "C:\Python27\virtual\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\</div>
<div>wsgiapp.py", line 133, in __call__</div><div>    resp = self.handlers[handler_name].handle(req)</div><div>  File "C:\Python27\virtual\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\</div><div>service\demo.py", line 76, in handle</div>
<div>    demo = self._render_wms_template('demo/wms_demo.html', req)</div><div>  File "C:\Python27\virtual\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\</div><div>service\demo.py", line 159, in _render_wms_template</div>
<div>    bbox = layer.extent.bbox_for(SRS(srs))</div><div>  File "C:\Python27\virtual\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\</div><div>srs.py", line 88, in SRS</div><div>    srs = _SRS(srs_code)</div>
<div>  File "C:\Python27\virtual\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\</div><div>srs.py", line 121, in __init__</div><div>    self.proj = Proj(init='epsg:%d' % epsg_num)</div><div>  File "C:\Python27\virtual\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\</div>
<div>platform\cpython\proj.py", line 172, in __init__</div><div>    (proj_def, init, libproj.pj_strerrno(errno)))</div><div>ProjInitError: error initializing Proj(proj_def=None, init='epsg:28992'): no sys</div>
<div>tem list, errno: 2</div></div><div><br></div><div>Now I'm a bit lost here as I have no clue about the internals of Mapproxy.</div><div><br></div><div>Anyone out here able to point me in the right direction? If any info is needed, please do say so.</div>
<div><br></div><div>Best regards,</div><div>Martijn Coenen</div><div><br></div>