[MapProxy] Limit coverage to a polygon

Mohr, Marcus Marcus.Mohr at geobasis-bb.de
Fri Jul 15 08:01:55 PDT 2016


Hi,

I'am working on a WebMapService (getting tiles from a cache) in which only a certain area should be visible. Therefore I created a polygon-shapefile which has a very specific border. I used the attribute "sources.coverage" to restrict the visibility and it seems that mapproxy can load the shape. BUT, it also seems as if it would not be using the correct border. Instead mapproxy just takes the largest expansion of the polygon and converts it into a simple rectangle... So there is more visible than it should be.

Now my question: How can I configure mapproxy that it uses the correct borders?  Is that even possible?

My Configuration looks like this:

sources:
  wms:
    type: wms
    coverage:
      datasource: '/cache/conf/polygons/polygon.shp'
      srs: 'EPSG:25833'
    [...]


Here's also a picture which shows the difference between the area to which the visibility should be limited (yellow), and the area that is now visible (aerial photo):

[cid:image002.png at 01D1DEB8.0B9778C0]

I hope you can help.

Best regards,
Marcus


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20160715/2b1f42f6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 56326 bytes
Desc: image001.png
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20160715/2b1f42f6/attachment-0001.png>


More information about the MapProxy mailing list