[mapserver-users] mapcache: restricted extent and ruleset to limit cache area seems ineffective

Mark Volz MarkVolz at co.lyon.mn.us
Fri Sep 6 11:35:53 PDT 2019


Hello,

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.

Thanks!

________________________________
You can set the

<errors>empty_img</errors>

To return a blank tile.  I believe the status is still 404 - I don't think you can control this

On Fri, 30 Aug 2019 at 15:44, Mark Volz <MarkVolz at co.lyon.mn.us<mailto:MarkVolz at co.lyon.mn.us>> wrote:
Hello,
 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.
 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?
 Question 2:  Do I have my ruleset configured appropriately?
 <tileset name="LyonBaseMap">
<grid ruleset="CountyBuffer">LyonCC</grid>
</tileset>
 <ruleset name="CountyBuffer">
<rule zoom_level="1 2 3 4 5 6 7 8 9 10 11"><!—Do I need to include zoom levels?-->
<visibility>
<extent>435567 98889 568247 259687</extent>
</visibility>
</rule>
</ruleset>
 Thank You!

Sincerely,
Mark Volz, GISP
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/mapserver-users<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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20190906/a09fa76d/attachment.html>


More information about the mapserver-users mailing list