On Mon, Nov 14, 2011 at 11:01 AM, Ákos Maróy <a...@maroy.hu> wrote:

> On 13/11/11 23:58, s...@clevelandmetroparks.com wrote:
> > I would suggest you do a conversion of the SRTM files to GeoTIFF.
>  Chances
> > are very good you can do this with gdal utilities
> > http://www.gdal.org/gdal_utilities.html .
>
> thanks for the tip. I tried, and it doesn't really look good - after the
> conversion, the file seems to 'lose depth'.
>
> when I open the converted .tif file in gimp, it tells me that the file
> uses 16 bit channels, while gimp only supports 8 bit channels. and thus
> the depth of coloring in the file is very crude.
>
> and I get the same effect when viewing the resulting layer, after
> importing it into geoserver, using the built-in OpenLayers preview.
>
> OTOH, when converting the HGT file into a JPEG using gdal, it seems to
> preserve all information.
>
> might it be that GeoServer supports only 8-bit GeoTIFF files, whereas
> the HGT files contain 16 bit height information?
>

GeoServer can read 16bit files, but the standard SLD color map is limited
to 256 colors.
GeoServer has an extension over the SLD spec that allows for 65k colors
to be used thought, see here:
http://docs.geoserver.org/stable/en/user/styling/sld-reference/rastersymbolizer.html#colormap

Cheers
Andrea

-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to