time queries with mapserver 4.4.1

Stefan Schwarzer stefan.schwarzer at GRID.UNEP.CH
Wed Feb 16 04:35:25 EST 2005


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/
        _______________________________________ 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 3044 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050216/73f5006d/attachment.bin


More information about the mapserver-users mailing list