Opened 14 years ago

Closed 14 years ago

#3531 closed defect (duplicate)

problem with wms getfeatureinfo request and time indexed files

Reported by: fred Owned by: sdlime
Priority: normal Milestone:
Component: MapServer CGI Version: 5.4
Severity: normal Keywords:
Cc:

Description

Hello, I am facing a possible bug whith a WMS GetFeatureInfo request. The accessed data are time dependant images. As a consequence, I use an index by setting the TILEINDEX attribute in the mapfile. When using such an index whith the above mentionned request, MapServer returns as much results (all the results are the same) as images referenced in this index containing the requested geographic point instead of only one (only one image is asked). I attach to this ticket the mapfile, the index and the images. To reproduce this, please copy these files in the same directory and try the following (what I call the first image is the one of 2010/09/02 ie AERONET_Skukuza.2010245.terra.2km.tif, the second one is the one of 2010/09/01 ie AERONET_Wits_University.2010244.terra.2km.tif) :

GetMap request with the first image -> OK

http://PathToMapserver/mapserv?map=PathToMapfile/bug.map&TIME=2010-09-02T00:00:00Z&SRS=EPSG:4326&STYLES=&LAYERS=terra&TRANSPARENT=true&FORMAT=image/png&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-35,10,-20,40&WIDTH=512&HEIGHT=256

#======================================

GetMap request with the second image -> OK

http://PathToMapserver/mapserv?map=PathToMapfile/bug.map&TIME=2010-09-01T00:00:00Z&SRS=EPSG:4326&STYLES=&LAYERS=terra&TRANSPARENT=true&FORMAT=image/png&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-35,10,-20,40&WIDTH=512&HEIGHT=256

#======================================

GetFeatureInfo whith the first image (this point is in the first image, not in the second) -> 1 result, OK

http://PathToMapserver/mapserv?map=PathToMapfile/bug.map&TIME=2010-09-02T00:00:00Z&SRS=EPSG:4326&STYLES=&LAYERS=terra&TRANSPARENT=true&FORMAT=image/png&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&BBOX=-35,10,-20,40&WIDTH=512&HEIGHT=256&X=300&Y=150&INFO_FORMAT=text/plain&QUERY_LAYERS=terra

Output :

GetFeatureInfo results:

Layer 'terra'
  Feature 0: 
    x = '27.599056'
    y = '-28.810878'
    value_0 = '119'
    value_1 = '96'
    value_2 = '55'
    value_list = '119,96,55'
    red = '119'
    green = '96'
    blue = '55'

#======================================

GetFeatureInfo whith the second image and the same point as above (this point is in the first image, not in the second) -> 1 result, PROBLEM

http://PathToMapserver/mapserv?map=PathToMapfile/bug.map&TIME=2010-09-01T00:00:00Z&SRS=EPSG:4326&STYLES=&LAYERS=terra&TRANSPARENT=true&FORMAT=image/png&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&BBOX=-35,10,-20,40&WIDTH=512&HEIGHT=256&X=300&Y=150&INFO_FORMAT=text/plain&QUERY_LAYERS=terra

Output, same as above :

GetFeatureInfo results:

Layer 'terra'
  Feature 0: 
    x = '27.599056'
    y = '-28.810878'
    value_0 = '119'
    value_1 = '96'
    value_2 = '55'
    value_list = '119,96,55'
    red = '119'
    green = '96'
    blue = '55'

#======================================

GetFeatureInfo whith the first image (this point is in the other image) -> 2 results, PROBLEM

http://PathToMapserver/mapserv?map=PathToMapfile/bug.map&TIME=2010-09-02T00:00:00Z&SRS=EPSG:4326&STYLES=&LAYERS=terra&TRANSPARENT=true&FORMAT=image/png&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&BBOX=-35,10,-20,40&WIDTH=512&HEIGHT=256&X=300&Y=130&INFO_FORMAT=text/plain&QUERY_LAYERS=terra

Output :

GetFeatureInfo results:

Layer 'terra'
  Feature 0: 
    x = '27.599056'
    y = '-27.641763'
    value_0 = '127'
    value_1 = '103'
    value_2 = '59'
    value_list = '127,103,59'
    red = '127'
    green = '103'
    blue = '59'
  Feature 0: 
    x = '27.599056'
    y = '-27.641763'
    value_0 = '127'
    value_1 = '103'
    value_2 = '59'
    value_list = '127,103,59'
    red = '127'
    green = '103'
    blue = '59'

#======================================

GetFeatureInfo whith the second image (this point is in the other image) -> 2 results, same as above, PROBLEM

http://PathToMapserver/mapserv?map=PathToMapfile/bug.map&TIME=2010-09-01T00:00:00Z&SRS=EPSG:4326&STYLES=&LAYERS=terra&TRANSPARENT=true&FORMAT=image/png&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&BBOX=-35,10,-20,40&WIDTH=512&HEIGHT=256&X=300&Y=130&INFO_FORMAT=text/plain&QUERY_LAYERS=terra

Output, same as above :

GetFeatureInfo results:

Layer 'terra'
  Feature 0: 
    x = '27.599056'
    y = '-27.641763'
    value_0 = '127'
    value_1 = '103'
    value_2 = '59'
    value_list = '127,103,59'
    red = '127'
    green = '103'
    blue = '59'
  Feature 0: 
    x = '27.599056'
    y = '-27.641763'
    value_0 = '127'
    value_1 = '103'
    value_2 = '59'
    value_list = '127,103,59'
    red = '127'
    green = '103'
    blue = '59'

Change History (1)

comment:1 by fred, 14 years ago

Resolution: duplicate
Status: newclosed

same as #3532

Note: See TracTickets for help on using tickets.