Ahh, ok that explains it.<div>Thanks for the information. </div><div><br>Jerl<br><br><div class="gmail_quote">On Mon, Dec 5, 2011 at 1:05 AM, thomas bonfort <span dir="ltr"><<a href="mailto:thomas.bonfort@gmail.com">thomas.bonfort@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">only the wms and wmts services support dimensions (there is no spec<br>
defining this support for the others).<br>
<br>
you can either adapt your gmaps/js code to build a wmts url, or hack<br>
into the mapcache code to add dimension support to the tms / gmaps<br>
service.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
thomas<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Sun, Dec 4, 2011 at 22:23, forums <<a href="mailto:forums@craniumjuice.com">forums@craniumjuice.com</a>> wrote:<br>
> I almost have it, I just can't seem to get the targetdate dimension to<br>
> populate.<br>
><br>
> /mapcache/gmaps/country@WGS84/1/1/0.png works fine if I don't have the<br>
> layers that require the targetdate parameter. I get a "parameter pattern<br>
> failed validation" error returned from Mapserver when I have the necessary<br>
> layers defined in the mapcache config file.<br>
><br>
> The obvious thing for me to try was:<br>
> /mapcache/gmaps/country@WGS84/1/1/0.png?targetdate=201112042105<br>
><br>
> But that failed. Is there a way to get the targetdate to fill in? I've<br>
> moved it around a bit, but still can't get it to fill in.<br>
><br>
> Thanks again!!<br>
><br>
> Jerl<br>
><br>
><br>
> On Sun, Dec 4, 2011 at 2:59 PM, forums <<a href="mailto:forums@craniumjuice.com">forums@craniumjuice.com</a>> wrote:<br>
>><br>
>> Thanks Stephen and Thomas.<br>
>><br>
>> I think I'll be good with the dimension and the disk cache.<br>
>> Unfortunately, the apache we have doesn't have memcache built into it (too<br>
>> much hassle to upgrade it right now) and the version of SQLite is too<br>
>> old...also a hassle to upgrade.<br>
>><br>
>> I was able to get it to load the proper map when just using the entire<br>
>> bounding box, the whole world. Now to make it work with the the tilemode<br>
>> for google...which looks like that should be straight forward??<br>
>><br>
>><br>
>> Thanks guys!!<br>
>><br>
>> Jerl<br>
>><br>
>><br>
>> On Sun, Dec 4, 2011 at 2:00 PM, thomas bonfort <<a href="mailto:thomas.bonfort@gmail.com">thomas.bonfort@gmail.com</a>><br>
>> wrote:<br>
>>><br>
>>> Jerl,<br>
>>> mapcache itself does not do any pruning of the caches it has created,<br>
>>> but you can get the same effect by using a cache backend that supports<br>
>>> expiration (i.e. memcache).<br>
>>> Mapcache can fit your need, provided:<br>
>>> - you configure your tileset with a "targetdate" <dimension>- you use<br>
>>> a memcache backend to store the created tiles, and set an <expires><br>
>>> value in mapcache to 5 hours<br>
>>> If the memory requirement for storing 5 hours worth of tiles is too<br>
>>> important for a memcache server instance, you can have a look at<br>
>>> membase which will also store less frequently used data to disk. The<br>
>>> membase protocol is compatible with memcache, so you can use either<br>
>>> memcache or membase with the same mapcache configuration.<br>
>>><br>
>>> Of course, by running a script every hour to delete expired tiles as<br>
>>> you are doing now, you can then use the classic disk based cache<br>
>>> backend.<br>
>>> regards,<br>
>>> thomas<br>
>>> On Sun, Dec 4, 2011 at 20:13, forums <<a href="mailto:forums@craniumjuice.com">forums@craniumjuice.com</a>> wrote:<br>
>>> > Hi:<br>
>>> ><br>
>>> > I hope this is the proper place to ask questions about Mapcache since<br>
>>> > it's<br>
>>> > been moved into the trunk of Mapserver.<br>
>>> ><br>
>>> > I'm wondering if Mapcache can help with a particular setup, and if so<br>
>>> > maybe<br>
>>> > some advice or direction on where to start?<br>
>>> ><br>
>>> > Here's the setup. Every 5 minutes a new set of GeoTiffs are created in<br>
>>> > a<br>
>>> > new directory. I create a tileindex for the GeoTiffs and use those in<br>
>>> > the<br>
>>> > map layer. Every hour, anything more than 5hours old gets deleted.<br>
>>> > I have a single mapfile setup.<br>
>>> ><br>
>>> > The general layer is setup like:<br>
>>> ><br>
>>> > LAYER<br>
>>> > NAME 'IMG1'<br>
>>> > METADATA<br>
>>> > 'wms_title' 'IMG 1'<br>
>>> > 'wms_srs' 'EPSG:4326'<br>
>>> > 'wms_extent' 'MINX MINY MAXX MAXY'<br>
>>> > 'default_targetdate' ''<br>
>>> > 'targetdate_validation_pattern' '^[0-9]{12}$'<br>
>>> > END<br>
>>> > STATUS ON<br>
>>> > TILEINDEX '/PATH/TO/IMG/DIR/%targetdate%/TILEINDEX.shp'<br>
>>> > TILEITEM 'Location'<br>
>>> > TYPE RASTER<br>
>>> > END<br>
>>> ><br>
>>> ><br>
>>> > I'm currently loading these images as overlays for Googlemaps. using<br>
>>> > the<br>
>>> > mode=tile&tilemode=gmaps...&targetdate=2011...etc.<br>
>>> > Problem is it's too slow. I end up loading hundreds of images, as I<br>
>>> > basically create an animation using sequential times.<br>
>>> ><br>
>>> > I'd like to be able to have a single mapcache config file, that will<br>
>>> > pass<br>
>>> > the date through to pull the proper shapefile, and have the result<br>
>>> > cached so<br>
>>> > next time it's loading off the disk. MOST of the images end up being<br>
>>> > blank/transparent tiles.<br>
>>> ><br>
>>> > Is Mapcache a good choice for this?<br>
>>> > The front end for this is just a simple GoogleMaps viewport, but ends<br>
>>> > up<br>
>>> > loading multiple timeslots for display. It generates the request URL<br>
>>> > (not<br>
>>> > currently in WMS fashion but could be).<br>
>>> ><br>
>>> > Thanks for any help I can get.<br>
>>> ><br>
>>> > Jerl<br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> > _______________________________________________<br>
>>> > mapserver-users mailing list<br>
>>> > <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
>>> > <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
>>> ><br>
>><br>
>><br>
>><br>
>><br>
>> --<br>
>> A computer without Windows is like chocolate cake without mustard.<br>
><br>
><br>
><br>
><br>
> --<br>
> A computer without Windows is like chocolate cake without mustard.<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>A computer without Windows is like chocolate cake without mustard.<br>
</div>