Baskar, Dhanapal ha scritto:
> I am working with raster data. Raster map have 8 cell values (0-7). 
> 0-> no color
> 1-> red ... etc.
> 
> Now when I click on the map on openlayer window I am getting RGB value like 
> [255,0,0,255] etc. 
> 
> My query was is it possible to get cell value instead of RGB value. Like when 
> I click on red coloured area in map, I have to get 1 as response.

This is what is happening already provided you're providing
the image with 0-1-...7 to GeoServer for display and use
the raster symbolizer to turn the numbers into colors.

For reference see the sf:dem layer we have in the GeoServers
you can download, or see this online version:
http://demo.opengeo.org/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=sf:sfdem&styles=&bbox=589980.0,4913700.0,609000.0,4928010.0&width=512&height=385&srs=EPSG:26713&format=application/openlayers

Cheers
Andrea


-- 
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to