Publishing GeoTiffs with Geoserver - ColorPalette with Alpha

المشرف العام

Administrator
طاقم الإدارة
I want to publish rasterdata (Geotiffs) with GeoServer. The resulting image from WMS is shown in Grayscale, but actually it is an RGB-Image.gdalinfo:

P:\OSGeo4W\bin>P:\OSGeo4W\bin\gdalinfo Q:\data\tif\pic.tifDriver: GTiff/GeoTIFFFiles: Q:\data\tif\pic.tifSize is 4523, 4522Coordinate System is:LOCAL_CS["DHDN / 3-degree Gauss-Kruger zone 3", GEOGCS["DHDN", DATUM["unknown", SPHEROID["unretrievable - using WGS84",6378137,298.257223563]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]], AUTHORITY["EPSG","31467"], UNIT["metre",1]]Origin = (3532474.929505631800000,5367000.280343170300000)Pixel Size = (0.333485342299112,-0.333485342299112)Metadata: AREA_OR_POINT=Area TIFFTAG_DATETIME=2012/05/08 11:38:04 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) TIFFTAG_SOFTWARE=WGEO 5.0 WGEO BASIS TIFFTAG_XRESOLUTION=200 TIFFTAG_YRESOLUTION=200Image Structure Metadata: COMPRESSION=DEFLATE INTERLEAVE=PIXELCorner Coordinates:Upper Left ( 3532474.930, 5367000.280)Lower Left ( 3532474.930, 5365492.260)Upper Right ( 3533983.284, 5367000.280)Lower Right ( 3533983.284, 5365492.260)Center ( 3533229.107, 5366246.270)Band 1 Block=256x256 Type=Byte, ColorInterp=Palette Overviews: 2262x2261, 1131x1131, 566x566 Mask Flags: PER_DATASET ALPHA Overviews of mask band: 2262x2261, 1131x1131, 566x566 Color Table (RGB with 256 entries) 0: 0,0,0,255 1: 128,0,0,255 2: 0,128,0,255 3: 128,128,0,255 4: 0,0,128,255 ... 253: 255,0,255,255 254: 0,255,255,255 255: 255,255,255,255Band 2 Block=256x256 Type=Byte, ColorInterp=Alpha Overviews: 2262x2261, 1131x1131, 566x566I think the problem is the Alpha-Channel. Without this Channel, the resulting image/colors are correct. I'm using the default style "raster" from Geoserver.



أكثر...
 
أعلى