On Sat, Jan 17, 2015 at 1:05 PM, Sean Gillies <[email protected]> wrote:

> On Sat, Jan 17, 2015 at 12:26 PM, Even Rouault <[email protected]
> > 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.
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to