Hi Justin,
As quoted from Justin Deoliveira <jdeolive@anonymised.com>:
I just tried this out and it seemed to work ok.
Well, I just tried e.g. this one from the supplied demo's on a fresh
Geoserver 1.5-RC1 install:
http://localhost:8080/geoserver/preview/nurc_~gtiff172030523_192_106_197_2_0.html
and it was still a grayscale map, i.e. not using raster.sld; to wit:
% gdalinfo -mm webapps/geoserver/data/coverages/geotiff_sample/~gtiff172030523_192_106_197_2_0.tiff
Driver: GTiff/GeoTIFF
Size is 512, 513
Coordinate System is:
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.2572235629972,
AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433],
AUTHORITY["EPSG","4326"]]
Origin = (-98.982384,49.058823)
Pixel Size = (0.09631848,-0.09631922)
Metadata:
AREA_OR_POINT=Area
Corner Coordinates:
Upper Left ( -98.9823837, 49.0588226)
Lower Left ( -98.9823837, -0.3529377)
Upper Right ( -49.6673203, 49.0588226)
Lower Right ( -49.6673203, -0.3529377)
Center ( -74.3248520, 24.3529425)
Band 1 Block=512x16 Type=Byte, ColorInterp=Gray
Computed Min/Max=0.000,255.000
which does not seem to match with raster.sld:
[...]
<ColorMapEntry color="#7deb32" quantity="0" label="values"/>
<ColorMapEntry color="#78c818" quantity="30" label="values"/>
<ColorMapEntry color="#38840c" quantity="105" label="values"/>
<ColorMapEntry color="#2c4b04" quantity="300" label="values"/>
[...]
Similarly for the sample from the coverage tutorial.
Questio:. When setting the style to raser, did you click "Submit", and
then "Apply" -> "Save".
Of course. I followed the tutorial to the letter.
> Also note that the raster.sld as distributed in 1.5-RC1 does not
> validate against the SLD schema.
Confirmed. I have committed the changes to the style.
Good.
Kind regards,
--
-- Gertjan van Oosten, gertjan@anonymised.com, West Consulting B.V., +31 15 2191 600