Ciao Samuel,
please read below...
On Tue, Aug 26, 2008 at 2:08 AM, Samuel Hiatt <samhiatt@anonymised.com> wrote:
Ciao Simone.
Grazie per rispondere...
Di niente 
a few questions may help me to provide some guidance:
- which version of geoserver are you using? RasterSymbolizer support
has gone mainstream lately, it might just be that the version you are
using does not support it.
I am running GS 1.6.3
Unfortunately this version does not have a rastersymbolizer implemented.
I wanted to port the RasterSymbolizer work to the 1.6.x branch but, if
my memory serves me right (it is quite late here) I never manage to do
it.
If you want to play with the raster symbolizer (feedback welcome
)
you should try the 1.7.0-rc1 release, you can find it here
http://geoserver.org/display/GEOS/GeoServer+1.7.0-RC1.
Note that shortly RC2 should be out as well.
- can you describe the data you are using in terms of the range dynamic?
I am working with byte data within the range 0 to 255.
Actually, the original data is floating point data, but I had to create
byte-scaled versions because I am aware that geotools doesn't yet support
Categories for 32-bit data. Is this limitation true with geoserver? or
should I expect to be able to style floating-point data with an SLD already,
as currently implemented?
The raster symbolizer I implemented for GeoTools should be able to
handle any kind of data with no problems (crossing fingers
).
Of course doing contrast enhancement and/or gamma correction on
floating point data is rather different than doing the same on byte
data hence, feedback on that is greatly appreciated.
As of the RasterSymbolizer element itself, it should work fine on
every type of data. I have tested it on unsigned short, short, float,
double and byte.
- can you attach a sample sld (well, actually some sample data would
be helpful as well).
I was trying to use the "raster" sld that comes packaged with the geoserver
.war, just modifying the values to fit my data (but staying within 0 to 255
range). I noticed that none of the example datasets actually use this
SLD... it looks like the sf dem, for example, is originally a 3-band RGB
tiff.
As I said above, older version of GeoServer simply ignored the SLD
raster symbolizer, we used (internally) vendor parameters to change
the styling of the coverages, but being an ugly hack we never commited
it to the public version. Since 1.7.0 however RasterSymbolizer should
start working.
Ciao,
Simone.
Thanks for your help.
Sam
--
-------------------------------------------------------
Eng. Simone Giannecchini
President /CEO GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy
phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928
http://www.geo-solutions.it
-------------------------------------------------------