[gdal-dev] Non able to manage properly vitual file, warping and black edges

Rahkonen Jukka jukka.rahkonen at maanmittauslaitos.fi
Mon Jan 22 11:04:00 PST 2024


Hi,

Could you add a small image to show how the result looks like? I fear my imagination may be inaccurate.

-Jukka Rahkonen-

Lähettäjä: gdal-dev <gdal-dev-bounces at lists.osgeo.org> Puolesta andy via gdal-dev
Lähetetty: maanantai 22. tammikuuta 2024 18.54
Vastaanottaja: gdal dev <gdal-dev at lists.osgeo.org>
Aihe: [gdal-dev] Non able to manage properly vitual file, warping and black edges

Hi,
I have four tif input files, these have 3 bands RGB and are JPEG compressed.
No null data set.

My goal is to mosaic these and then warp the mosaic.

I start it with:

gdalbuildvrt mosaic.vrt file1.tif  file2.tif  file3.tif  file4.tif

Then I warp the mosaic:

gdalwarp -dstalpha -of vrt -overwrite -s_srs EPSG:32632 -t_srs EPSG:7791 mosaic.vrt warped.vrt

Then I run

gdal_translate -b 1 -b 2 -b 3 -b 4 -co BIGTIFF=YES -co COMPRESS=DEFLATE -co ALPHA=YES -co TILED=YES -co NUM_THREADS=ALL_CPUS  warped.vrt  output.tif

The final tiff file has black edges.
What's wrong with my procedure? How to avoid this?

Thank you

--
___________________

Andrea Borruso
website: https://medium.com/tantotanto
38° 7' 48" N, 13° 21' 9" E, EPSG:4326
___________________

"cercare e saper riconoscere chi e cosa,
 in mezzo all'inferno, non è inferno,
e farlo durare, e dargli spazio"

Italo Calvino
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240122/03a9e541/attachment.htm>


More information about the gdal-dev mailing list