time queries with mapserver 4.4.1
Yewondwossen Assefa
assefa at DMSOLUTIONS.CA
Wed Feb 16 13:00:15 PST 2005
Stefan,
Stefan,
I am not sure that the wms time support does what you are expecting
(unless I misunderstood you) :
The time support does queries based on *one* field item (the field
item is determined by the value in the metadata wms_timeitem). It does
not use diffrent fields to do queries. Basically the wms TIME value
passed as argument is set on layer's filter parameter (eg if the wms
TIEM value is 2004-10-12 and the wms_timeitem is TIME, your filler would
be set like `[TIME]` eq `2004-10-12`).
If I misunderstood your case, please let me know.
Later,
Stefan Schwarzer wrote:
> Hi,
>
> I have lots of national yearly statistical data sets. For making time
> queries:
>
> a) does it support shapefiles with data for different years?
> b) The document mentioned below indicates that it can query for a year,
> but the title-field in the dbf file can't contain only a number. Thus I
> changed the titles to Y_1990, Y_1991, etc... How can I deal with that?
> c) Does somebody have a working example?
>
> Stef
>
>
> There is a doc explaining the current wms time support in Mapserver
> at :
> http://mapserver.gis.umn.edu/doc/wms-time-support-howto.html
>
> Later,
>
> Trond Michelsen wrote:
>
> Hi.
>
> I'm still unsuccessful in trying to understand how to make a time
> query in mapserver 4.4.1, and I'd appreciate any help on the
> subject.
>
> I have several layers that I access with WMS through mapserver, and
> some of these layers can show data for different dates and times.
> Here's an example of a layer definition in my map file.
>
> --8<--
> LAYER
> NAME "wind"
> STATUS ON
> TYPE RASTER
> OFFSITE 255 255 255
>
> CONNECTION "http://wmsserver/cgi-bin/wms.cgi?"
> CONNECTIONTYPE WMS
>
> PROJECTION
> "proj=stere"
> "a=6371000"
> "b=6371000"
> "lat_0=90"
> "lat_ts=60"
> "lon_0=0"
> END
>
> METADATA
> "wms_name" "wind"
> "wms_server_version" "1.1.1"
> "wms_formatlist" "image/png"
> "wms_format" "image/png"
> END
>
> END
> --8<--
>
> I've seen suggestions that it's possible to use %var% for every
> parameter in the query string, so I tried to add "wms_time
> %time%" to
> the metadata, and then add a select-box with appropriate dates
> to the
> web-page, but that passed "time=%25time%25" to the WMS-server.
>
> Being able to make queries at all is of course the most important
> issue I'd like to have solved, but I'm also a bit curious about
> how I
> define which times that are appropriate. How do I configure the
> mapfile, so that mapserv.cgi adds the proper <dimension>-tag to a
> GetCapabilities response? Also, is it possible to get
> mapserv.cgi to
> automatically fill inn available dates in the web template, or
> will I
> have to change it every time the available dates changes?
>
> --
> Trond Michelsen
>
>
>
> --
> ----------------------------------------------------------------
> Assefa Yewondwossen
> Software Analyst
>
> Email: assefa at dmsolutions.ca
> http://www.dmsolutions.ca/
>
> Phone: (613) 565-5056 (ext 14)
> Fax: (613) 565-0925
> ----------------------------------------------------------------
>
>
>
>
>
> _______________________________________
>
> *Stefan Schwarzer
> * GIS & Data Management
>
> UNEP/DEWA/GRID-Geneva
> Chemin des Anemones 11
> CH - 1219 Chatelaine
> Switzerland
>
> Tel: (+41) 22.917.83.49
> Fax: (+41) 22.917.80.29
>
> Internet: http://geodata.grid.unep.ch/
> _______________________________________
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
More information about the MapServer-users
mailing list