<div><br></div><div dir="auto">I’ve had success setting a mask at the Mapserver level, and MapCache has not problem only rendering imagery to the edge of whatever irregular shape you need to use (e.g. watershed or county boundary). So maybe try that?</div><div dir="auto"><br></div><div dir="auto">However It’s true, MapCache will still return blank tiles outside the mask area.</div><div dir="auto"><br></div><div dir="auto">Tanya</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 6, 2019 at 1:36 PM Mark Volz <<a href="mailto:MarkVolz@co.lyon.mn.us">MarkVolz@co.lyon.mn.us</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div class="m_-1624977552147219480WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hello,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">I am still having issues restricting the extent in my mapcache area using rulesets.  I created a rule for all of my zoom levels that has a limited visibility
 extent.  However, Mapcache is still returning imagery for the entire grid area even though I created a rule that should only display a limited extent.  I am still not sure why the visibility extent rule seems ineffective.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Thanks!
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div></div></div><div lang="EN-US" link="blue" vlink="purple"><div class="m_-1624977552147219480WordSection1">
<div>
<div>
<p class="MsoNormal">You can set the <u></u><u></u></p>
<pre><span class="m_-1624977552147219480gmail-nt"><errors></span>empty_img<span class="m_-1624977552147219480gmail-nt"></errors> </span><u></u><u></u></pre>
<pre><span class="m_-1624977552147219480gmail-nt">To return a blank tile.  I believe the status is still 404 - I don't think you can control this</span><u></u><u></u></pre>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Fri, 30 Aug 2019 at 15:44, Mark Volz <<a href="mailto:MarkVolz@co.lyon.mn.us" target="_blank">MarkVolz@co.lyon.mn.us</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">Hello,<u></u><u></u></p>
<p class="MsoNormal"> I am in the process of limiting the cached area in mapcache.  I am having trouble with both the restricted_extent and ruleset parameters.  I first started by using restricted_extent
 such as “<grid restricted_extent="435567 98889 568247 259687">LyonCC</grid>”.  That parameter seemed to work.  However mapcache returned 404 errors for any tiles outside of the restricted extent.  Next I tried to use rulesets instead.  The rulesets seem to
 have no effect, and new tiles were getting generated outside of the visibility extent. 
<u></u><u></u></p>
<p class="MsoNormal"> Question 1:  When we use restricted extents on a grid should MapCache return a transparent tile, white tile, or a 404 error?  Can we control what it returns?<u></u><u></u></p>
<p class="MsoNormal"> Question 2:  Do I have my ruleset configured appropriately?<u></u><u></u></p>
<p class="MsoNormal"> <tileset name="LyonBaseMap"><u></u><u></u></p>
<p class="MsoNormal" style="text-indent:.5in">
<grid ruleset="CountyBuffer">LyonCC</grid><u></u><u></u></p>
<p class="MsoNormal"></tileset><u></u><u></u></p>
<p class="MsoNormal"> <ruleset name="CountyBuffer"><u></u><u></u></p>
<p class="MsoNormal" style="text-indent:.5in">
<rule zoom_level="1 2 3 4 5 6 7 8 9 10 11"><!—Do I need to include zoom levels?--><u></u><u></u></p>
<p class="MsoNormal" style="text-indent:.5in">
<visibility><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:.5in">
<extent>435567 98889 568247 259687</extent><u></u><u></u></p>
<p class="MsoNormal" style="text-indent:.5in">
</visibility><u></u><u></u></p>
<p class="MsoNormal" style="text-indent:.5in">
</rule><u></u><u></u></p>
<p class="MsoNormal"></ruleset><u></u><u></u></p>
<p class="MsoNormal"> Thank You!<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><span style="color:#1f497d">Sincerely,</span><u></u><u></u></p>
<p class="MsoNormal"><b><span style="color:#1f497d">Mark Volz, GISP</span></b><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="https://linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.osgeo.org%2fmailman%2flistinfo%2fmapserver-users&c=E,1,6lLLKxr4YQ4gS0gO-fBg_QGwrJ8NxU_Qs7RwHq0qR8cvYcIZcYFAPHM9maX52KR__kCixDuKb7sTCiozp0p31et-WqjfL0pBYi_rbBr-m7rA1J_hoO7IhowR&typo=1" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><u></u><u></u></p>
</blockquote>
</div>
</div>
</div>
</div>

_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a></blockquote></div></div>