[mapserver-users] Problem with QueryByPoint and QueryByRect with PHP Mapscript

Emiliano Castañeda emilianocastaneda at suremptec.com.ar
Mon Mar 14 09:39:53 PDT 2011


Hi to all,

Im having a problem 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.


¿Could this be a bug?

Regards,

Ing. Emiliano Castañeda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110314/67fdb30a/attachment.htm>


More information about the MapServer-users mailing list