[gdal-dev] GDALFillNodata needs GTiff driver?

Sean Gillies sean at mapbox.com
Tue Jan 20 13:10:57 PST 2015


On Sat, Jan 17, 2015 at 1:05 PM, Sean Gillies <sean at mapbox.com> wrote:

> On Sat, Jan 17, 2015 at 12:26 PM, Even Rouault <even.rouault at spatialys.com
> > wrote:
>
>> 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
>>
>
> Thanks, Even, I'll let you know how it turns out.
>

Works like a charm. I've submitted a PR
https://github.com/OSGeo/gdal/pull/47 to get this back into GDAL.
Meanwhile, I'm maintaining a fork of rasterfill.cpp in Rasterio.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20150120/b2b230f4/attachment.html>


More information about the gdal-dev mailing list