Publishing floating point geotiffs trough WMS

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Publishing floating point geotiffs trough WMS

follo
I have a DEM stored as a 1-layer 32-bit floating point geotiff that I for various reasons want to serve through WMS. Doing so always results in a data type of uint8/byte. Is there a way to make geoserver deliver floating point geotiffs?

* request URL:
http://XXX/geoserver/Norrkoping/wms?service=WMS&version=1.1.0&request=GetMap&layers=Norrkoping:nkp_dem_1m_RT90&styles=&bbox=1517780.0,6492980.0,1528620.0,6501620.0&width=512&height=408&srs=EPSG:3021&format=image/geotiff

* gdalinfo on source data:
Driver: GTiff/GeoTIFF
Files: nkp_dem_1m.tif
Size is 10840, 8640
Coordinate System is:
PROJCS["RT90 2.5 gon V",
    GEOGCS["RT90",
        DATUM["Rikets_koordinatsystem_1990",
            SPHEROID["Bessel 1841",6377397.155,299.1528128000008,
                AUTHORITY["EPSG","7004"]],
            AUTHORITY["EPSG","6124"]],
        PRIMEM["Greenwich",0],
        UNIT["degree",0.0174532925199433],
        AUTHORITY["EPSG","4124"]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",0],
    PARAMETER["central_meridian",15.80827777777778],
    PARAMETER["scale_factor",1],
    PARAMETER["false_easting",1500000],
    PARAMETER["false_northing",0],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]],
    AUTHORITY["EPSG","3021"]]
Origin = (1517780.000000000000000,6501620.000000000000000)
Pixel Size = (1.000000000000000,-1.000000000000000)
Metadata:
  TIFFTAG_XRESOLUTION=100
  TIFFTAG_YRESOLUTION=100
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  ( 1517780.000, 6501620.000) ( 16d 6'52.03"E, 58d38'13.99"N)
Lower Left  ( 1517780.000, 6492980.000) ( 16d 6'49.59"E, 58d33'34.72"N)
Upper Right ( 1528620.000, 6501620.000) ( 16d18'4.01"E, 58d38'11.90"N)
Lower Right ( 1528620.000, 6492980.000) ( 16d18'0.08"E, 58d33'32.64"N)
Center      ( 1523200.000, 6497300.000) ( 16d12'26.43"E, 58d35'53.43"N)
Band 1 Block=10840x1 Type=Float32, ColorInterp=Gray

* gdalinfo on WMS data
Driver: GTiff/GeoTIFF
Files: wms(7)
Size is 512, 408
Coordinate System is:
PROJCS["RT90 2.5 gon V",
    GEOGCS["RT90",
        DATUM["Rikets_koordinatsystem_1990",
            SPHEROID["Bessel 1841",6377397.155,299.1528128000008,
                AUTHORITY["EPSG","7004"]],
            AUTHORITY["EPSG","6124"]],
        PRIMEM["Greenwich",0],
        UNIT["degree",0.0174532925199433],
        AUTHORITY["EPSG","4124"]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",0],
    PARAMETER["central_meridian",15.80827777777778],
    PARAMETER["scale_factor",1],
    PARAMETER["false_easting",1500000],
    PARAMETER["false_northing",0],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]],
    AUTHORITY["EPSG","3021"]]
Origin = (1517780.000000000000000,6501620.000000000000000)
Pixel Size = (21.171875000000000,-21.176470588235293)
Metadata:
  AREA_OR_POINT=Area
  TIFFTAG_XRESOLUTION=1
  TIFFTAG_YRESOLUTION=1
  TIFFTAG_RESOLUTIONUNIT=1 (unitless)
Image Structure Metadata:
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  ( 1517780.000, 6501620.000) ( 16d 6'52.03"E, 58d38'13.99"N)
Lower Left  ( 1517780.000, 6492980.000) ( 16d 6'49.59"E, 58d33'34.72"N)
Upper Right ( 1528620.000, 6501620.000) ( 16d18'4.01"E, 58d38'11.90"N)
Lower Right ( 1528620.000, 6492980.000) ( 16d18'0.08"E, 58d33'32.64"N)
Center      ( 1523200.000, 6497300.000) ( 16d12'26.43"E, 58d35'53.43"N)
Band 1 Block=512x16 Type=Byte, ColorInterp=Gray