Thanks for the help.&nbsp; <br><br>It should be very easy to filter my files for time.&nbsp; What should my mapfile look like for the 4D layer?&nbsp; The same thing as for a 4D wms layer, with the tile index and wms_* metadata tags but I would use mapscript to screen the files?&nbsp; Do you know of a way I might reuse the screening code that is used for 4D WMS?
<br><br>Thanks!<br>Sam<br><br><br><br><div><span class="gmail_quote">On 10/12/07, <b class="gmail_sendername">Yewondwossen Assefa</b> &lt;<a href="mailto:assefa@dmsolutions.ca">assefa@dmsolutions.ca</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Samuel Hiatt wrote:<br>&gt; Hi!&nbsp;&nbsp;Thanks for the reply.<br>&gt;<br>&gt; So I suppose when I make a WMS request with TIME Mapserver applies the<br>&gt; filter behind the scenes, finding which feature in my tile_index.shp<br>
&gt; represents the correct time and then processes the raster pointed to by<br>&gt; that feature?&nbsp;&nbsp;So if I want to implement the same kind of thing with<br>&gt; mapscript I&#39;d have to write the filter myself?<br>&gt;<br>
&nbsp;&nbsp;That is correct : assuming that the underlying data can be filtered<br>using a time field, you need to know the attribute and build the time<br>expression and set it using mapscript.<br><br>&gt; The reason I am interested in doing this is to extend temporal
<br>&gt; functionality to ka-map.&nbsp;&nbsp;I may end up abandoning that approach and<br>&gt; moving to a javascript WMS client (like OpenLayers of MapBuilder) instead.<br>&gt;<br>&gt; Thanks for your help.<br>&gt;<br>&gt; Sam<br>
&gt;<br>&gt;<br>&gt;<br>&gt; On 10/11/07, *Yewondwossen Assefa* &lt;<a href="mailto:assefa@dmsolutions.ca">assefa@dmsolutions.ca</a><br>&gt; &lt;mailto:<a href="mailto:assefa@dmsolutions.ca">assefa@dmsolutions.ca</a>&gt;&gt; wrote:
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Hi there,<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The Time parameter that is sent with a WMS request is simply<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; converted<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; to a time expression and set on the filter object of the layer. In the<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; case of wms. the metadata wms_timeitem will be used for the<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; attribute name.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if you are using mapscript, you would need to build the time<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; expression manually and set the filter parameter. Please refer to
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://mapserver.gis.umn.edu/docs/howto/wms_time_support">http://mapserver.gis.umn.edu/docs/howto/wms_time_support</a> (section 2.5)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; to see how time parameters are interpreted.<br>&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; Best Regards,<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Samuel Hiatt wrote:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; I am excited to see that Mapserver supports 4D raster layers for WMS,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; but I am curious if this functionality can be extended to mapscript
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; calls as well?&nbsp;&nbsp;For example, if I set up a raster layer with a TIME<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; dimension then will it be possible for me to request an image for a<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; specific time with mapscript?&nbsp;&nbsp;Or would I have to do this with a
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; WMS call?<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; Thanks!<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; Sam<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; --<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; ----------------------------------------------------------------<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Assefa Yewondwossen
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Software Analyst<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Email: <a href="mailto:assefa@dmsolutions.ca">assefa@dmsolutions.ca</a> &lt;mailto:<a href="mailto:assefa@dmsolutions.ca">assefa@dmsolutions.ca</a>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.dmsolutions.ca/">
http://www.dmsolutions.ca/</a><br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Phone: (613) 565-5056 (ext 14)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Fax:&nbsp;&nbsp; (613) 565-0925<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; ----------------------------------------------------------------<br>&gt;<br>&gt;<br><br><br>--
<br>----------------------------------------------------------------<br>Assefa Yewondwossen<br>Software Analyst<br><br>Email: <a href="mailto:assefa@dmsolutions.ca">assefa@dmsolutions.ca</a><br><a href="http://www.dmsolutions.ca/">
http://www.dmsolutions.ca/</a><br><br>Phone: (613) 565-5056 (ext 14)<br>Fax:&nbsp;&nbsp; (613) 565-0925<br>----------------------------------------------------------------<br><br></blockquote></div><br>