[Geoserver-devel] GetFeatureInfo cell value respose

hi,

My Geoserver WMS request returns raster map in openlayers window. I clicked
on map to test getFeatureInfo request. On clicking on map, i am getting RGB
values on the screen like 255,0,0,255 etc. My raster map has cell value
(0-7). But i didnt get cell value in the getFeatureInfo.

Please let me know what i can do to get cell value when doing
getFeatureInfo?

regards
Baskar
--
View this message in context: http://old.nabble.com/GetFeatureInfo-cell-value-respose-tp27527079p27527079.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

Dear Baskar,
can you please be more specific?

I did not understand if you are working with raster data or with vector data.

Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Founder - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini
http://twitter.com/simogeo

-------------------------------------------------------

On Wed, Feb 10, 2010 at 9:03 AM, Baski@anonymised.com <dbaskar@anonymised.com> wrote:

hi,

My Geoserver WMS request returns raster map in openlayers window. I clicked
on map to test getFeatureInfo request. On clicking on map, i am getting RGB
values on the screen like 255,0,0,255 etc. My raster map has cell value
(0-7). But i didnt get cell value in the getFeatureInfo.

Please let me know what i can do to get cell value when doing
getFeatureInfo?

regards
Baskar
--
View this message in context: http://old.nabble.com/GetFeatureInfo-cell-value-respose-tp27527079p27527079.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
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
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

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.

Thanks & Regards,
Baskar Dhanapal
Mob : +91-9663366087 Extn: 835

Thanks & Regards,
Baskar Dhanapal || First Indian Corporation || Bangalore
Mob : +91-9663366087 Direct : 080-44332211 Extn : 835
"Try. Try. Until U Get.. God Knew Ur Future"
-----Original Message-----
From: simboss1@anonymised.com [mailto:simboss1@anonymised.com] On Behalf Of Simone Giannecchini
Sent: Monday, February 15, 2010 4:22 AM
To: Baskar, Dhanapal
Cc: geoserver-devel@lists.sourceforge.net
Subject: Re: [Geoserver-devel] GetFeatureInfo cell value respose

Dear Baskar,
can you please be more specific?

I did not understand if you are working with raster data or with vector data.

Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Founder - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini
http://twitter.com/simogeo

-------------------------------------------------------

On Wed, Feb 10, 2010 at 9:03 AM, Baski@anonymised.com <dbaskar@anonymised.com> wrote:

hi,

My Geoserver WMS request returns raster map in openlayers window. I clicked
on map to test getFeatureInfo request. On clicking on map, i am getting RGB
values on the screen like 255,0,0,255 etc. My raster map has cell value
(0-7). But i didnt get cell value in the getFeatureInfo.

Please let me know what i can do to get cell value when doing
getFeatureInfo?

regards
Baskar
--
View this message in context: http://old.nabble.com/GetFeatureInfo-cell-value-respose-tp27527079p27527079.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
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
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

******************************************************************************************
This message may contain confidential or proprietary information intended only for the use of the
addressee(s) named above or may contain information that is legally privileged. If you are
not the intended addressee, or the person responsible for delivering it to the intended addressee,
you are hereby notified that reading, disseminating, distributing or copying this message is strictly
prohibited. If you have received this message by mistake, please immediately notify us by
replying to the message and delete the original message and any copies immediately thereafter.

Thank you.
******************************************************************************************
FACLD

Simone Giannecchini wrote:

Dear Baskar,
can you please be more specific?

I did not understand if you are working with raster data or with vector
data.

Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Founder - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini
http://twitter.com/simogeo

-------------------------------------------------------

On Wed, Feb 10, 2010 at 9:03 AM, Baski@anonymised.com <dbaskar@anonymised.com>
wrote:

hi,

My Geoserver WMS request returns raster map in openlayers window. I
clicked
on map to test getFeatureInfo request. On clicking on map, i am getting
RGB
values on the screen like 255,0,0,255 etc. My raster map has cell value
(0-7). But i didnt get cell value in the getFeatureInfo.

Please let me know what i can do to get cell value when doing
getFeatureInfo?

regards
Baskar
--
View this message in context:
http://old.nabble.com/GetFeatureInfo-cell-value-respose-tp27527079p27527079.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
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
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

------------------------------------------------------------------------------
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
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Thanks for your reply simone

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.
--
View this message in context: http://old.nabble.com/GetFeatureInfo-cell-value-response-tp27527079p27590167.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

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.