Hi List,

It's quite similar with this post:
http://osgeo-org.1560.n6.nabble.com/Publishing-floating-point-geotiffs-trough-WMS-td3853914.html

but my case is that not only do I get "Byte" instead of original
"Int16" but also totally unknown Band "2" is added to the returned
file.


Getmap request
------------------------
http://xxx.xxx.xxx:8080/geoserver/test/wms?LAYERS=test:original&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&width=1440&height=721&bbox=-180,-90,180,90&FORMAT=image/geotiff&SRS=EPSG:4326


GeoTIFF stored in GeoServer
-----------------------------------------------

# gdalinfo original.tif
Driver: GTiff/GeoTIFF
Files: stored.tif
Size is 1440, 721
Coordinate System is:
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.257223563,
            AUTHORITY["EPSG","7030"]],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433],
    AUTHORITY["EPSG","4326"]]
Origin = (-180.000000000000000,90.000000000000000)
Pixel Size = (0.250000000000000,-0.249653259361997)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  (-180.0000000,  90.0000000)
Lower Left  (-180.0000000, -90.0000000)
Upper Right ( 180.0000000,  90.0000000)
Lower Right ( 180.0000000, -90.0000000)
Center      (   0.0000000,  -0.0000000)
Band 1 Block=1440x2 Type=Int16, ColorInterp=Gray


Getmap result file
--------------------------

# gdalinfo result.tif
Driver: GTiff/GeoTIFF
Files: result.tif
Size is 1440, 721
Coordinate System is:
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.257223563,
            AUTHORITY["EPSG","7030"]],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433],
    AUTHORITY["EPSG","4326"]]
Origin = (-180.000000000000000,90.000000000000000)
Pixel Size = (0.250000000000000,-0.249653259361997)
Metadata:
  TIFFTAG_XRESOLUTION=1
  TIFFTAG_YRESOLUTION=1
  TIFFTAG_RESOLUTIONUNIT=1 (unitless)
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (-180.0000000,  90.0000000)
Lower Left  (-180.0000000, -90.0000000)
Upper Right ( 180.0000000,  90.0000000)
Lower Right ( 180.0000000, -90.0000000)
Center      (   0.0000000,  -0.0000000)
Band 1 Block=1440x8 Type=Byte, ColorInterp=Gray
Band 2 Block=1440x8 Type=Byte, ColorInterp=Undefined



Please tell me how to get (Getmap) the image keeping the original Type
and Band configuration.

Here are my server versions.

    * Version 2.1.2
    * Subversion Revision -1
    * GeoTools Version 2.7.3 (rev -1)

Thanks so much,
Yoshi

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to