<div class="gmail_quote"><div>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.</div></div><div><br>
</div><div>When performing a QueryByRect or QueryByPoint using PHP Mapscript (didn&#39;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.</div>
<div><br></div><div>If I add a COLOR tag to the CLASS, when querying red, green and blue contain this color, as expected.</div><div>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.</div>
<div><br></div><div>Shouldn&#39;t red, green and blue contain value1, value2, and value3 if CLASS object doesn&#39;t contain a COLOR tag as those are the rendered values?</div><div><br></div><div><br></div>Regards<br>-- <br>
Ing. Emiliano Castañeda<br>SUR Emprendimientos Tecnológicos<br><br>Perú 345  Piso 5to Oficina &quot;B&quot; (C1067AAG)<br>Ciudad de Buenos Aires, Argentina<br>Tel. +54 (11) 4342-2976/84<br><a href="mailto:emilianocastaneda@suremptec.com.ar">emilianocastaneda@suremptec.com.ar</a><br>
<a href="http://www.suremptec.com">www.suremptec.com</a><br>