Hi All,

I've some question here regarding masks with Image Mosaics
I've Pleiade images that have 4 bands, the fourth is not defined:
Band 1 Block=20480x1 Type=Byte, ColorInterp=Red
Band 2 Block=20480x1 Type=Byte, ColorInterp=Green
Band 3 Block=20480x1 Type=Byte, ColorInterp=Blue
Band 4 Block=20480x1 Type=Byte, ColorInterp=Undefined
If I'm using them as is it does not work so I'm dropping a band, as well as
adding overviews and tiling

I'm using the following commands from the tutorial :
gdal_translate -b 1 -b 2 -b 3 -mask 4 -co "TILED=YES" -co "BLOCKXSIZE=512"
-co "BLOCKYSIZE=512" -co "COMPRESS=JPEG" -co "PHOTOMETRIC=YCBCR" -co
"jpeg_quality=100" --config GDAL_TIFF_INTERNAL_MASK YES input.tif output.tif
gdaladdo -r average --config COMPRESS_OVERVIEW JPEG --config
PHOTOMETRIC_OVERVIEW YCBCR --config JPEG_QUALITY_OVERVIEW 100 output.tif 2
4 8 16 32

and now my images info is :
Band 1 Block=512x512 Type=Byte, ColorInterp=Red
  Overviews: 10240x10240, 5120x5120, 2560x2560, 1280x1280, 640x640
  Mask Flags: PER_DATASET
  Overviews of mask band: 10240x10240, 5120x5120, 2560x2560, 1280x1280,
640x640
Band 2 Block=512x512 Type=Byte, ColorInterp=Green
  Overviews: 10240x10240, 5120x5120, 2560x2560, 1280x1280, 640x640
  Mask Flags: PER_DATASET
  Overviews of mask band: 10240x10240, 5120x5120, 2560x2560, 1280x1280,
640x640
Band 3 Block=512x512 Type=Byte, ColorInterp=Blue
  Overviews: 10240x10240, 5120x5120, 2560x2560, 1280x1280, 640x640
  Mask Flags: PER_DATASET
  Overviews of mask band: 10240x10240, 5120x5120, 2560x2560, 1280x1280,
640x640

Mosaic is displayed in geoserver with a black border, but if I take  the
same images in qgis the mask is used correctly.
Changing the footprint to transparent makes no difference. If I use black
as transparent color it's dirty because there are black spots everywhere
that do not appear in qgis.

I'm clearly missing something. Do you have any idea of what?
Thank you!

Nicolas
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to