[gdal-dev] GDALFillNodata needs GTiff driver?

Even Rouault even.rouault at spatialys.com
Sat Jan 17 11:26:14 PST 2015


Le samedi 17 janvier 2015 01:37:30, Sean Gillies a écrit :
> Hi all,
> 
> I'm wondering about the possibility of using MEM datasets in
> GDALFillNodata() instead of TIFFs. I see in the code
> 
> GDALDriverH hDriver = GDALGetDriverByName( "GTiff" ); if (hDriver == NULL)
> { CPLError(CE_Failure, CPLE_AppDefined, "GDALFillNodata needs GTiff
> driver"); return CE_Failure; }
> Does the algorithm require TIFF features or can I swap in the MEM driver?

Sean,

AFAIK you can use any driver. TIFF was used to generate temporary files, but if 
you've enough RAM, MEM should do it.
You will probably have to edit the "static const char *apszOptions[]" to make 
it an empty list to avoid warnings about non handled creation options.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list