Thanks for the help. <br><br>It should be very easy to filter my files for time. What should my mapfile look like for the 4D layer? 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? 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> <<a href="mailto:assefa@dmsolutions.ca">assefa@dmsolutions.ca</a>> 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>> Hi! Thanks for the reply.<br>><br>> So I suppose when I make a WMS request with TIME Mapserver applies the<br>> filter behind the scenes, finding which feature in my tile_index.shp<br>
> represents the correct time and then processes the raster pointed to by<br>> that feature? So if I want to implement the same kind of thing with<br>> mapscript I'd have to write the filter myself?<br>><br>
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>> The reason I am interested in doing this is to extend temporal
<br>> functionality to ka-map. I may end up abandoning that approach and<br>> moving to a javascript WMS client (like OpenLayers of MapBuilder) instead.<br>><br>> Thanks for your help.<br>><br>> Sam<br>
><br>><br>><br>> On 10/11/07, *Yewondwossen Assefa* <<a href="mailto:assefa@dmsolutions.ca">assefa@dmsolutions.ca</a><br>> <mailto:<a href="mailto:assefa@dmsolutions.ca">assefa@dmsolutions.ca</a>>> wrote:
<br>><br>> Hi there,<br>><br>> The Time parameter that is sent with a WMS request is simply<br>> converted<br>> to a time expression and set on the filter object of the layer. In the<br>
> case of wms. the metadata wms_timeitem will be used for the<br>> attribute name.<br>> if you are using mapscript, you would need to build the time<br>> expression manually and set the filter parameter. Please refer to
<br>> <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>> to see how time parameters are interpreted.<br>><br>
> Best Regards,<br>><br>><br>> Samuel Hiatt wrote:<br>> > I am excited to see that Mapserver supports 4D raster layers for WMS,<br>> > but I am curious if this functionality can be extended to mapscript
<br>> > calls as well? For example, if I set up a raster layer with a TIME<br>> > dimension then will it be possible for me to request an image for a<br>> > specific time with mapscript? Or would I have to do this with a
<br>> WMS call?<br>> ><br>> > Thanks!<br>> ><br>> > Sam<br>><br>><br>> --<br>> ----------------------------------------------------------------<br>> Assefa Yewondwossen
<br>> Software Analyst<br>><br>> Email: <a href="mailto:assefa@dmsolutions.ca">assefa@dmsolutions.ca</a> <mailto:<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: (613) 565-0925<br>> ----------------------------------------------------------------<br>><br>><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: (613) 565-0925<br>----------------------------------------------------------------<br><br></blockquote></div><br>