I'm an Ubuntu 20.04 user with all configured to use .ecw raster format. I can read these files in QGIS (3.10) and work with them without a problem. This is what I get in console:
$ gdalinfo --version GDAL 3.0.4, released 2020/01/28 $ gdalinfo --formats | grep -i ecw ECW -raster- (rw+): ERDAS Compressed Wavelets (SDK 5.4) JP2ECW -raster,vector- (rw+v): ERDAS JPEG2000 (SDK 5.4)
The issue here is that I'm trying to perform some processes with this files within R but it seems that .ecw are not working and I don't know what to do.
> gdalbuildvrt(gdalfile = "PNOA_MA_OF_ETRS89_HU29_h50_0151.ecw", output.vrt = "dem.vrt") ERROR 4: `PNOA_MA_OF_ETRS89_HU29_h50_0151.ecw' not recognized as a supported file format. Warning 1: Can't open PNOA_MA_OF_ETRS89_HU29_h50_0151.ecw. Skipping it NULL Warning message: In system(cmd, intern = TRUE) : comando ejecutado '"/usr/local/bin/gdalbuildvrt" "dem.vrt" "PNOA_MA_OF_ETRS89_HU29_h50_0151.ecw"' tiene estatus 1
What could I check? I prefer any solution that downgrading the gdal version to 2.4 (as is Ubuntu is quite complex to make it all work and that will brake other things for sure...).