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