Hi,

I’m trying to use the image pyramid plug-in for a big ortho image. I’m
unable to find a good combination of settings with a manageable “data
footprint” and clean borders without artefacts.



When using gdal_retile.py in combination with -co "COMPRESS=JPEG" I get
compression artefacts as described e.g. here:



https://gis.stackexchange.com/questions/114370/compression-artifacts-and-gdal



When I try e.g. this, I get an excellent end result, but the data footprint
is about 7 time bigger (too big for my use case) than using COMPRESS=JPEG:



gdalwarp input.tif clipped.tif -cutline border.shp -dstalpha



gdal_retile.py -v -r bilinear -levels 4 -ps 2048 2048 -co "TILED=YES" -co
"COMPRESS=Deflate" -targetDir output_dir clipped.tif



With COMPRESS=JPEG I get errors after publishing the pyramid via GeoServer
(GeoServer cannot handle an alpha channel added on top of a JPEG
compression) as described here:



https://gis.stackexchange.com/questions/213257/problem-with-rendering-jpeg-compressed-image-caused-by-java-lang-classnotfoun



I tried adding a footprint via a footprints.properties file in the top
level of the image pyramid directory trying to add an external mask with:



footprint_source=border.shp



pointing to a footprint SHP-file. This does not seem to be picked up by
GeoServer. I can find documentation on how this should be done for
ImageMosaic. For ImagePyramids something similar should be possible
according to this tutorial:



https://docs.geoserver.org/2.23.x/en/user/tutorials/imagemosaic_footprint/imagemosaic_footprint.html



But I can’t find examples on how this should be configured specifically for
ImagePyramids.


Is it possible to use an external mask with ImagePyramids? Can someone
point me to documentation on how this should be done or explain what I
might be doing wrong?



Kind regards,
Olav
_______________________________________________
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


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to