[mapserver-dev] MapCache Time Dimensions Problem
Michael Smith
michael.smith.erdc at gmail.com
Sat Jun 6 16:13:57 PDT 2015
I've created a timedimension tileset in MapCache and created the backend
sqlite db that has the available times. The mapserver backend handles the
WMS TIME requests without a problem. And when I query mapcache without a
&TIME=, I get my the default output.
However, if I specify a &TIME= parameter to MapCache (as a WMS or WMTS
request), I get
no matching entry for given TIME dimension "TIME" in tileset "earthquakes"
I don't know what I need to change to get MapCache to recognize the TIME
parameter. From the docs on RFC-96
(http://mapserver.org/development/rfc/ms-rfc-96.html) I don't see what else
to specify to set MapCache to understand TIME requests.
I can see MapCache making the backend requests to generate images from the
time values in the sqlite DB but only with the default specified in the
<timedimension>. It never understands new ranges passed with &TIME=.
My tileset looks like
<tileset name="earthquakes">
<source>earthquakes</source>
<cache>sqlite</cache>
<grid>GoogleMapsCompatible</grid>
<format>PNG</format>
<metatile>5 5</metatile>
<metabuffer>10</metabuffer>
<expires>3600</expires>
<timedimension type="sqlite" default="2014-03-25T12Z" >
<dbfile>/u02/mapcache/dbtime2.db</dbfile>
<query>select
strftime('%Y-%m-%dT%H:%M:%SZ',start)||'/'||strftime('%Y-%m-%dT%H:%M:%SZ',end
) from time
where source_id=:tileset
and start_time>=datetime(:start_timestamp,'unixepoch')
and end_time<=datetime(:end_timestamp,'unixepoch')
order by end_time
</query>
</timedimension>
</tileset>
----
Michael Smith
US Army Corps
Remote Sensing GIS/Center
michael.smith at usace.army.mil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20150606/d30530b7/attachment.html>
More information about the mapserver-dev
mailing list