[gdal-dev] Excessive memory usage in python script
Jamie Adams
jaadfoo at gmail.com
Mon Jun 9 15:58:00 EDT 2008
Oops, I forgot to include:
driver = GetDriverByName(format)
I went ahead and rewrote the line you suggested, same problems though.
Thanks,
Jamie
On Mon, Jun 9, 2008 at 12:34 PM, Frank Warmerdam <warmerdam at pobox.com>
wrote:
>
> format = "GTiff"
>> outdataset.driver.Create(outfile, inband.XSize, inband.YSize, 1,
>> gdal.GDT_Float32)
>> outband = outdataset.GetRasterBand(1)
>>
>
> Jamie,
>
> I'm very suspicious about the above, and I *suspect* it is orphaning
> the new dataset objects created with the Create() call which might
> be responsible for your resource leak.
>
> I would suggest:
>
> format = "GTiff"
> outdataset = gdal.GetDriverByName(format).Create(....)
>
> Good luck,
> --
>
> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up | Frank Warmerdam,
> warmerdam at pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam<http://pobox.com/%7Ewarmerdam>
> and watch the world go round - Rush | President OSGeo, http://osgeo.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20080609/29ff240b/attachment.html
More information about the gdal-dev
mailing list