Opened 16 years ago

Closed 14 years ago

#2586 closed defect (worksforme)

Multiple GetFeatureInfo for Raster Data only returning results for one layer

Reported by: mdoyle Owned by: warmerdam
Priority: normal Milestone:
Component: WMS Server Version: 5.0
Severity: normal Keywords: getfeatureinfo raster data multiple
Cc:

Description

When attempting to query more than one Raster data layer using GetFeatureInfo, the results only ever return information on the first layer in the list, never for the subsequent layers given in the LAYERS or QUERY_LAYERS parameter. FEATURE_COUNT is set to > 1.

Please find attached:
a streamlined map file: latest.map
two raster data files: rain_ann_tas.asc, rain_jan_tas.asc
two projection files: rain_ann_tas.prj, rain_jan_tas.prj

The data is a subset of Tasmania Australia only, to save on file size.

The URL used to reproduce this is as follows:
latest?&SERVICE=wms&VERSION=1.1.1&REQUEST=getfeatureinfo&LAYERS=rain_ann,rain_jan&QUERY_LAYERS=rain_ann,rain_jan&X=200&Y=150&INFO_FORMAT=text/plain&SRS=EPSG:4283&BBOX=144,-43,149,-40&FORMAT=image/png&WIDTH=400&HEIGHT=300&STYLES&FEATURE_COUNT=2

Example results are as follows:

GetFeatureInfo results:

Layer 'rain_ann'
  Feature 0: 
    x = '146.4625'
    y = '-41.4625'
    value_0 = '1116'
    value_list = '1116'
    class = '1000-1200 mm'
    red = '142'
    green = '206'
    blue = '165'
  Feature 1: 
    x = '146.4875'
    y = '-41.4625'
    value_0 = '1078'
    value_list = '1078'
    class = '1000-1200 mm'
    red = '142'
    green = '206'
    blue = '165'

Original email context

Attachments (6)

rain_ann_tas.asc (86.8 KB ) - added by mdoyle 16 years ago.
Annual Rainfall Raster data for Tasmania
rain_ann_tas.prj (166 bytes ) - added by mdoyle 16 years ago.
Annual Rainfall Raster data Projection for Tasmania
rain_jan_tas.asc (62.8 KB ) - added by mdoyle 16 years ago.
January Rainfall Raster data for Tasmania
rain_jan_tas.prj (166 bytes ) - added by mdoyle 16 years ago.
January Rainfall Raster data Projection for Tasmania
latest.map (7.1 KB ) - added by mdoyle 16 years ago.
Map file
bug2586.zip (49.3 KB ) - added by warmerdam 16 years ago.
zip of cleaned up (ready to run) data and map as I used them.

Download all attachments as: .zip

Change History (9)

by mdoyle, 16 years ago

Attachment: rain_ann_tas.asc added

Annual Rainfall Raster data for Tasmania

by mdoyle, 16 years ago

Attachment: rain_ann_tas.prj added

Annual Rainfall Raster data Projection for Tasmania

by mdoyle, 16 years ago

Attachment: rain_jan_tas.asc added

January Rainfall Raster data for Tasmania

by mdoyle, 16 years ago

Attachment: rain_jan_tas.prj added

January Rainfall Raster data Projection for Tasmania

by mdoyle, 16 years ago

Attachment: latest.map added

Map file

comment:1 by warmerdam, 16 years ago

Component: MapServer C LibraryWMS Server
Status: newassigned

I have modified the map (commenting out some unneeded stuff like fontsets, and symbol files), and I have run mapserv like this (note a few changes removing semi-colons from the reported url):

mapserv QUERY_STRING='map=latest.map&SERVICE=wms&VERSION=1.1.1&REQUEST=getfeatureinfo&LAYERS=rain_ann,rain_jan&QUERY_LAYERS=rain_ann,rain_jan&X=200&Y=150&INFO_FORMAT=text/plain&SRS=EPSG:4283&BBOX=144,-43,149,-40&FORMAT=image/png&WIDTH=400&HEIGHT=300&STYLES&FEATURE_COUNT=2'

The result was as follows (in brief I got 15 responses for each of the two layers). This was done with a debug build of MapServer trunk on linux. I don't see any problem. I will attach the modified .map file and the supporting data as a zip (bug3586.zip) so that you can try them again at your end to see if you get the same results as I do.

Content-type: text/plain

GetFeatureInfo results:

Layer 'rain_ann'
  Feature 0: 
    x = '146.4625'
    y = '-41.4625'
    value_0 = '1116'
    value_list = '1116'
    class = '1000-1200 mm'
    red = '142'
    green = '206'
    blue = '165'
  Feature 1: 
    x = '146.4875'
    y = '-41.4625'
    value_0 = '1078'
    value_list = '1078'
    class = '1000-1200 mm'
    red = '142'
    green = '206'
    blue = '165'
  Feature 2: 
    x = '146.5125'
    y = '-41.4625'
    value_0 = '1077'
    value_list = '1077'
    class = '1000-1200 mm'
    red = '142'
    green = '206'
    blue = '165'
  Feature 3: 
    x = '146.5375'
    y = '-41.4625'
    value_0 = '1053'
    value_list = '1053'
    class = '1000-1200 mm'
    red = '142'
    green = '206'
    blue = '165'
  Feature 4: 
    x = '146.4625'
    y = '-41.4875'
    value_0 = '1115'
    value_list = '1115'
    class = '1000-1200 mm'
    red = '142'
    green = '206'
    blue = '165'
  Feature 5: 
    x = '146.4875'
    y = '-41.4875'
    value_0 = '1084'
    value_list = '1084'
    class = '1000-1200 mm'
    red = '142'
    green = '206'
    blue = '165'
  Feature 6: 
    x = '146.5125'
    y = '-41.4875'
    value_0 = '1072'
    value_list = '1072'
    class = '1000-1200 mm'
    red = '142'
    green = '206'
    blue = '165'
  Feature 7: 
    x = '146.5375'
    y = '-41.4875'
    value_0 = '1059'
    value_list = '1059'
    class = '1000-1200 mm'
    red = '142'
    green = '206'
    blue = '165'
  Feature 8: 
    x = '146.4625'
    y = '-41.5125'
    value_0 = '1113'
    value_list = '1113'
    class = '1000-1200 mm'
    red = '142'
    green = '206'
    blue = '165'
  Feature 9: 
    x = '146.4875'
    y = '-41.5125'
    value_0 = '1089'
    value_list = '1089'
    class = '1000-1200 mm'
    red = '142'
    green = '206'
    blue = '165'
  Feature 10: 
    x = '146.5125'
    y = '-41.5125'
    value_0 = '1069'
    value_list = '1069'
    class = '1000-1200 mm'
    red = '142'
    green = '206'
    blue = '165'
  Feature 11: 
    x = '146.5375'
    y = '-41.5125'
    value_0 = '1076'
    value_list = '1076'
    class = '1000-1200 mm'
    red = '142'
    green = '206'
    blue = '165'
  Feature 12: 
    x = '146.4625'
    y = '-41.5375'
    value_0 = '1126'
    value_list = '1126'
    class = '1000-1200 mm'
    red = '142'
    green = '206'
    blue = '165'
  Feature 13: 
    x = '146.4875'
    y = '-41.5375'
    value_0 = '1103'
    value_list = '1103'
    class = '1000-1200 mm'
    red = '142'
    green = '206'
    blue = '165'
  Feature 14: 
    x = '146.5125'
    y = '-41.5375'
    value_0 = '1075'
    value_list = '1075'
    class = '1000-1200 mm'
    red = '142'
     green = '206'
    blue = '165'
  Feature 15: 
    x = '146.5375'
    y = '-41.5375'
    value_0 = '1084'
    value_list = '1084'
    class = '1000-1200 mm'
    red = '142'
    green = '206'
    blue = '165'

Layer 'rain_jan'
  Feature 0: 
    x = '146.4625'
    y = '-41.4625'
    value_0 = '50'
    value_list = '50'
    class = '25-50 mm'
    red = '248'
    green = '245'
    blue = '174'
  Feature 1: 
    x = '146.4875'
    y = '-41.4625'
    value_0 = '49'
    value_list = '49'
    class = '25-50 mm'
    red = '248'
    green = '245'
    blue = '174'
  Feature 2: 
    x = '146.5125'
    y = '-41.4625'
    value_0 = '49'
    value_list = '49'
    class = '25-50 mm'
    red = '248'
    green = '245'
    blue = '174'
  Feature 3: 
    x = '146.5375'
    y = '-41.4625'
    value_0 = '48'
    value_list = '48'
    class = '25-50 mm'
    red = '248'
    green = '245'
    blue = '174'
  Feature 4: 
    x = '146.4625'
    y = '-41.4875'
    value_0 = '51'
    value_list = '51'
    class = '50-100 mm'
    red = '230'
    green = '236'
    blue = '164'
  Feature 5: 
    x = '146.4875'
    y = '-41.4875'
    value_0 = '50'
    value_list = '50'
    class = '25-50 mm'
    red = '248'
    green = '245'
    blue = '174'
  Feature 6: 
    x = '146.5125'
    y = '-41.4875'
    value_0 = '49'
    value_list = '49'
    class = '25-50 mm'
    red = '248'
    green = '245'
    blue = '174'
  Feature 7: 
    x = '146.5375'
    y = '-41.4875'
    value_0 = '49'
    value_list = '49'
    class = '25-50 mm'
    red = '248'
    green = '245'
    blue = '174'
  Feature 8: 
    x = '146.4625'
    y = '-41.5125'
    value_0 = '52'
    value_list = '52'
    class = '50-100 mm'
    red = '230'
    green = '236'
    blue = '164'
  Feature 9: 
    x = '146.4875'
    y = '-41.5125'
    value_0 = '51'
    value_list = '51'
    class = '50-100 mm'
    red = '230'
    green = '236'
    blue = '164'
  Feature 10: 
    x = '146.5125'
    y = '-41.5125'
    value_0 = '50'
    value_list = '50'
    class = '25-50 mm'
    red = '248'
    green = '245'
    blue = '174'
  Feature 11: 
    x = '146.5375'
    y = '-41.5125'
    value_0 = '50'
    value_list = '50'
    class = '25-50 mm'
    red = '248'
    green = '245'
    blue = '174'
  Feature 12: 
    x = '146.4625'
    y = '-41.5375'
    value_0 = '53'
    value_list = '53'
    class = '50-100 mm'
    red = '230'
    green = '236'
    blue = '164'
  Feature 13: 
    x = '146.4875'
    y = '-41.5375'
    value_0 = '52'
    value_list = '52'
    class = '50-100 mm'
    red = '230'
    green = '236'
    blue = '164'
  Feature 14: 
    x = '146.5125'
    y = '-41.5375'
    value_0 = '51'
    value_list = '51'
    class = '50-100 mm'
    red = '230'
    green = '236'
    blue = '164'
  Feature 15: 
    x = '146.5375'
    y = '-41.5375'
    value_0 = '51'
    value_list = '51'
    class = '50-100 mm'
    red = '230'
    green = '236'
    blue = '164'

by warmerdam, 16 years ago

Attachment: bug2586.zip added

zip of cleaned up (ready to run) data and map as I used them.

comment:2 by mdoyle, 16 years ago

Update: I installed MapServer 5.0.2 and the trunk version to test the bug with GetFeatureInfo on raster layers.

MapServer 5.0.2 produced the same result as our current version 5.0.0 erroneously producing results for only one layer.

The trunk correctly produced results for more than one layer, as seen above, but there were more records displayed than the feature count (a bug of which i have opened a separate ticket for at http://trac.osgeo.org/mapserver/ticket/2603).

comment:3 by warmerdam, 14 years ago

Resolution: worksforme
Status: assignedclosed
Note: See TracTickets for help on using tickets.