Re: [gdal-dev] Convert alpha to nodata?

2024-01-22 Thread Robert Coup via gdal-dev
Hi Even, Thanks for your reply! On Fri, 19 Jan 2024 at 17:32, Even Rouault wrote: > I can't think an easy way of doing what you want. > Is there a functional gap? *Conceptually* it feels to me like VRTRasterBand.ComplexSource.UseMaskBand should "mark" a pixel to be nodata-equivalent (NaN?), an

Re: [gdal-dev] Convert alpha to nodata?

2024-01-22 Thread Even Rouault via gdal-dev
Le 22/01/2024 à 14:26, Robert Coup a écrit : Hi Even, Thanks for your reply! On Fri, 19 Jan 2024 at 17:32, Even Rouault wrote: I can't think an easy way of doing what you want. Is there a functional gap? /Conceptually/ it feels to me like VRTRasterBand.ComplexSource.UseMaskBand shou

[gdal-dev] warp issue: Source and target ellipsoid do not belong to the same celestial body

2024-01-22 Thread Wilco K via gdal-dev
Hi, these 2 lines work with GDAL 2.2.3, but not with GDAL 3.5.0 anymore. gdal_translate -of GTiff -a_nodata 65535 -a_srs "+proj=stere +lat_0=90 +lon_0=0 +lat_ts=60 +a=6378.14 +b=6356.75 +x_0=0 y_0=0" -a_ullr 0.0, -3649.9792, 700.000, -4414.9792 "HDF5:\"RAD_NL25_RAC_03H_202401220800.h5\"://imag

Re: [gdal-dev] warp issue: Source and target ellipsoid do not belong to the same celestial body

2024-01-22 Thread Even Rouault via gdal-dev
Le 22/01/2024 à 17:33, Wilco K via gdal-dev a écrit : Hi, these 2 lines work with GDAL 2.2.3, but not with GDAL 3.5.0 anymore. gdal_translate -of GTiff -a_nodata 65535 -a_srs "+proj=stere +lat_0=90 +lon_0=0 +lat_ts=60 +a=6378.14 +b=6356.75 +x_0=0 y_0=0" -a_ullr 0.0, -3649.9792, 700.000, -441

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

2024-01-22 Thread andy via gdal-dev
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 -overwr

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

2024-01-22 Thread Even Rouault via gdal-dev
Le 22/01/2024 à 17:53, andy via gdal-dev a écrit : 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 Try a

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

2024-01-22 Thread andy via gdal-dev
Hi Even, and thank you, I have the same result. Do I must remove jpeg compression in gdaladdo? Best regards -- ___ 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 me

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

2024-01-22 Thread Even Rouault via gdal-dev
ah I missed your sources were JPEG compressed. Do they have padding around them? If so, you might need to use nearblack to compute a mask band Le 22/01/2024 à 18:09, andy a écrit : Hi Even, and thank you, I have the same result. Do I must remove jpeg compression in gdaladdo? Best regards -

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

2024-01-22 Thread Rahkonen Jukka via gdal-dev
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 Puolesta andy via gdal-dev Lähetetty: maanantai 22. tammikuuta 2024 18.54 Vastaanottaja: gdal dev Aihe: [gdal-dev] Non able to manage properly vitu

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

2024-01-22 Thread andy via gdal-dev
Hi Even first of all, thank you very much. I was tired yesterday. I realize this, because this morning I created a new script starting from scratch and everything seems to be working. Yesterday I was probably looking at the wrong output folder (I am stupid as well as tired). It this way it works: