[mapserver-users] MapCache: Disabling WMS requests for fully-seeded caches?

thomas bonfort thomas.bonfort at gmail.com
Tue Nov 29 11:56:19 EST 2011


I've just tried report_img locally without issues, any chance you can
provide a backtrace ?

On Tue, Nov 29, 2011 at 17:32, John Taranu
<jtaranu at firstbasesolutions.com> wrote:
> Hi Thomas,
>
> Thanks for the suggestion.  Commenting out the source block disables the WMS requests.
>
> However, the error reporting seems to be broken.  Setting <errors>empty_img</errors> crashes Apache with a segmentation fault (mod_mapcache SVN revision 12828).  Setting <errors>report</errors> throws HTTP 404 responses, which is a more reasonable result.
>
> John
>
>
>
> -----Original Message-----
> From: thomas bonfort [mailto:thomas.bonfort at gmail.com]
> Sent: Tuesday, November 29, 2011 10:33 AM
> To: John Taranu
> Cc: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] MapCache: Disabling WMS requests for fully-seeded caches?
>
> You can do this by commenting out the <source> block from the tileset once the wanted tiles have been created. You'll probably also want set error reporting to return blank images from that stage onwards.
>
> --
> thomas
>
> On Tue, Nov 29, 2011 at 00:09, John Taranu <jtaranu at firstbasesolutions.com> wrote:
>> We have a fully seeded cache that was fully seeded to a polygon outline.
>> The intent is to serve the tileset through a variety of services (WMS,
>> TMS) using mod-mapcache.
>>
>>
>>
>> Tiles that are outside the polygon outline but still within the
>> polygon bounding box should be blank tiles.  However, a request for
>> one of these tiles results in a call to that tileset’s WMS source.
>> This creates considerable overhead by starting up MapServer and
>> writing the resulting tile to the cache.  Is there any way to disable
>> the WMS calls for these blank tiles, and instead short-circuit the
>> request to return a blank?  That is, once a tileset has been fully
>> seeded, is it possible to disable any further calls to the WMS, so
>> that requests for tiles that are not in the cache return a blank?
>>
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>


More information about the mapserver-users mailing list