Hi Nicolas, did you add a footprints.properties file within the ImageMosaic config folder, containing the property footprint_source=raster ?
https://docs.geoserver.org/latest/en/user/tutorials/imagemosaic_footprint/imagemosaic_footprint.html#raster-masking This is needed to enable the binary mask machinery. Please, let us know. Regards, Daniele On Mon, Mar 15, 2021 at 2:19 AM Nicolas Raggueneau < [email protected]> wrote: > 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 > -- Regards, Daniele Romagnoli == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Daniele Romagnoli Senior Software Engineer GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 1660272 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.
_______________________________________________ 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
