[gdal-dev] gdal.Warp error No space left on device.

Even Rouault even.rouault at spatialys.com
Fri Dec 14 11:14:06 PST 2018


On vendredi 14 décembre 2018 18:48:32 CET Deschamps, Benjamin (EC) wrote:
> Hi,
> 
> I've been able to reproduce the error reported here:
> https://trac.osgeo.org/gdal/ticket/3500 (closed/invalid).
> 
> The error is:
> 
> Traceback (most recent call last):
>   File "C:\Users\deschampsb\Desktop\gdalwarp_HFA_bug\gdalwarp_HFA_bug.py",
> line 22, in <module> gdal.Warp("warp.hfa", "test.tif",
> options=warp_options)
>   File "C:\Python36\lib\site-packages\osgeo\gdal.py", line 584, in Warp
>     return wrapper_GDALWarpDestName(destNameOrDestDS, srcDSTab, opts,
> callback, callback_data) File
> "C:\Python36\lib\site-packages\osgeo\gdal.py", line 2928, in
> wrapper_GDALWarpDestName return _gdal.wrapper_GDALWarpDestName(*args)
> RuntimeError: Failed to extend warp.ige to full size (5.73878e+09 bytes),
> likely out of disk space.
> No space left on device
> 
> This is using Python 3.6.1 64-bits with GDAL 2.1.3 bindings, on Windows
> Server 2008.
> 
> It turns out that the error is not related to the HFA output format, or to a
> lack of space in the destination location, but in my case to a lack of free
> space on C:. I had hundreds of GB of free disk in the output location, but
> I noticed that in my case, there was no (40K) disk space left on the system
> C: drive. Freeing up space on the C solved the issue. Are there any temp
> files being created there?

No, but the .ige file is a side car file that is created next to the main .hfa 
file (.img is usually used) if the main file would be bigger to 2GB, so if you 
created the .hfa file on c:\, the .ige will also be on c:\

Even

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


More information about the gdal-dev mailing list