Re: [gdal-dev] ECRG RasterIO problem

2022-10-03 Thread Even Rouault
Martin, I bet you have GDAL_FORCE_CACHING=YES set. At least that was the only way I could trigger the error. I've queued in https://github.com/OSGeo/gdal/pull/6464 a fix for that. The first commit is sufficient to fix the issue despite being a bit hacky, but you could cherry-pick it without

[gdal-dev] PNG image set background transparent

2022-10-03 Thread liglio.pessoal
Hi, I have a PNG image RGB (3-band), and I want to set the background transparent. How do I do it using GDAL ? Regards, Liglio ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] How to obtain the raster footprint poly of actual data with python

2022-10-03 Thread gdisk.mike
To get the result using command line, I found the 3 commands did the trick. gdal_translate -b mask -of vrt -a_nodata 0 'path/to/input.tif' test.vrt gdal_translate -b 1 -of vrt -a_nodata 0 test.vrt test2.vrt gdal_polygonize.[bat/py] -q -8 test2.vrt -b 1 -f "ESRI Shapefile" testdata.shp This was o

[gdal-dev] ECRG RasterIO problem

2022-10-03 Thread mchapman
All, I have an ECRG dataset that fails when reading pixels from the gdalrasterband object on one of the subdatasets. It appears that the underlying proxy dataset has a macro check called RB_PROXY_METHOD_WITH_RET_WITH_INIT_BLOCK that fails because the block sizes are different. This happens fo