[mapserver-users] Error on QueryBy* on PHP Mapscript when querying raster layer?

Emiliano Castañeda emilianocastaneda at suremptec.com.ar
Sun Mar 13 17:25:03 EDT 2011


I have defined a mapfile for a raster LAYER object with a CLASS object to
define a KEYIMAGE tag. The CLASS object doesn´t contain a COLOR tag, but
contains a TEMPLATE tag.

When performing a QueryByRect or QueryByPoint using PHP Mapscript (didn't
try other queries), value1, value2, value3 contain the correct raster data,
but red, green and blue contain 0, even though the image is rendered
correctly with red=value1, green=value2, and blue=value3.

If I add a COLOR tag to the CLASS, when querying red, green and blue contain
this color, as expected.
If I remove the CLASS object, when querying red, green and blue containt
value1, value2 and value3 as expected, but I cannot create a legend icon as
KEYIMAGE is not defined.

Shouldn't red, green and blue contain value1, value2, and value3 if CLASS
object doesn't contain a COLOR tag as those are the rendered values?


Regards
-- 
Ing. Emiliano Castañeda
SUR Emprendimientos Tecnológicos

Perú 345  Piso 5to Oficina "B" (C1067AAG)
Ciudad de Buenos Aires, Argentina
Tel. +54 (11) 4342-2976/84
emilianocastaneda at suremptec.com.ar
www.suremptec.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110313/d1e4805f/attachment.html


More information about the mapserver-users mailing list