<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Sprechblasentext Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.E-MailFormatvorlage17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#0D0D0D;}
span.SprechblasentextZchn
        {mso-style-name:"Sprechblasentext Zchn";
        mso-style-priority:99;
        mso-style-link:Sprechblasentext;
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="color:#0D0D0D">Hi, <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#0D0D0D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#0D0D0D">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#0D0D0D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#0D0D0D">Now my question: How can I configure mapproxy that it uses the correct borders?  Is that even possible?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#0D0D0D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#0D0D0D">My Configuration looks like this:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#0D0D0D;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#0D0D0D;mso-fareast-language:DE">sources:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">  wms:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">    type: wms<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">    coverage:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">      datasource: '/cache/conf/polygons/polygon.shp'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">      srs: 'EPSG:25833'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">    […]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">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):<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:DE"><img width="274" height="213" id="Grafik_x0020_1" src="cid:image001.png@01D1DEBA.97326280" alt="cid:image002.png@01D1DEB8.0B9778C0"></span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">I hope you can help.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal">Best regards,<o:p></o:p></p>
<p class="MsoNormal">Marcus<o:p></o:p></p>
<p class="MsoNormal"><span style="color:#0D0D0D;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>