[mapserver-users] GetFeatureInfo request for WMS time

Paolo Corti pcorti at gmail.com
Thu May 3 01:29:15 PDT 2012


Hi all

I have a WMS time service, defined in this way in the mapfile:

    # time index for fc_FWI
    LAYER
        NAME index_fc_FWI
        TYPE POLYGON
        DATA index_fc_FWI
        STATUS ON
        METADATA
            "wms_title" "index_fc_FWI"
            "wms_srs"   "EPSG:4326"
            "wms_extent" "0 -90 360 90"
            "wms_timeextent" "2001-01-01/2020-12-31"
            "wms_timeitem" "DATE"
            "wms_timedefault" "2011-10-02"
            "wms_enable_request" "*"
        END
    END

    # wsm with time for fc_FWI
    LAYER
        NAME "fc_FWI"
        TYPE RASTER
        STATUS ON
        TEMPLATE     "templates/variable_template.html"
        METADATA
           "wms_title" "fc_FWI with time"
           "wms_srs"   "EPSG:4326"
           "wms_extent" "0 -90 360 90"
           "wms_timeextent" "2001-01-01/2020-12-31"
           "wms_timeitem" "DATE"
           "wms_timedefault" "2011-10-02"
           "wms_enable_request" "*"
        END
        OFFSITE 0 0 0
        PROCESSING "BANDS=1,2,3"
        TILEITEM "location"
        TILEINDEX index_fc_FWI
    END

processing a GetMap request, everything works as expected, and I get
the correct image for the time passed with the TIME parameter:

http://localhost/mapserver/global?LAYERS=fc_FWI&TIME=2011-10-01&VISIBILITY=true&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fpng&SRS=EPSG%3A900913&BBOX=0,-1.862645149231e-9,10018754.17,10018754.17&WIDTH=256&HEIGHT=256

but if I perform a GetFeatureInfo request with the same date:

http://localhost/mapserver/global?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=fc_FWI&QUERY_LAYERS=fc_FWI&TIME=2011-10-01&STYLES=&BBOX=-16795967.087793%2C-6283939.619141%2C19795967.087793%2C13283939.619141&FEATURE_COUNT=1&HEIGHT=500&WIDTH=935&FORMAT=image%2Fpng&INFO_FORMAT=text%2Fhtml&SRS=EPSG%3A900913&X=524&Y=173

I get as many results as many features (polygons) there are in the
index shapefile (index_fc_FWI), even if with different DATE values:
looks like the TIME parameter is not parsed at all from the
GetFeatureInfo request.
Am I missing anything obvious? Is it the GetFeatureInfo request
supported by a Time WMS server?

thanks
p

-- 
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti



More information about the MapServer-users mailing list