Opened 13 years ago
#3745 new defect
Red, Green and Blue attributes return 0 on raster QueryBy*
Reported by: | casta1999 | Owned by: | aboudreault |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | MapScript-PHP | Version: | 5.6 |
Severity: | normal | Keywords: | |
Cc: |
Description
when using QueryByPoint and QueryByRect on PHP Mapscript and Mapserver 5.6.6 on this layer, as Red, Green, and Blue attributes are always 0, even though the image is rendered correctly.
LAYER
GROUP "grBlueMarble" NAME "nmBlueMarble" TYPE raster DATA "../../../layers/raster/BlueMarble.img" STATUS OFF OPACITY 100 PROJECTION
"init=epsg:900913"
END OFFSITE 0 0 0 CLASS
TEMPLATE "foo.bar" NAME "BlueMarble" KEYIMAGE "../../../images/icon_rasterLayer.png"
END
END
As the image is correctly rendered I would expect to receive Red, Green, and Blue attributes the same as Value_0, Value_1 as Value_2 instead of 0.
If I remove the CLASS object the Red, Green, and Blue attributes are correct but I cannot define a KEYIMAGE tag, which I need to create a legend.
If I define a COLOR tag inside the CLASS object, Red, Green and Blue acquire this value, as expected.