id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc 4042,gdalwarp doesn't take into account the memory needed by DstDensity mask,Even Rouault,Even Rouault,"Howto reproduce : {{{ import gdal import osr sr = osr.SpatialReference() sr.ImportFromEPSG(4326) ds = gdal.GetDriverByName('GTiff').Create('N000E100.150.deflate.tif', 28800, 28800, 1, options = ['SPARSE_OK=YES']) ds.SetGeoTransform([100, 0.000138888889000,0,0,0,-0.000138888889000]) ds.SetProjection(sr.ExportToWkt()) ds = None ds = gdal.GetDriverByName('GTiff').Create('N000E104.150.deflate.tif', 28800, 28800, 1, options = ['SPARSE_OK=YES']) ds.SetGeoTransform([104,0.000138888889000,0,0,0,-0.000138888889000]) ds.SetProjection(sr.ExportToWkt()) ds = None }}} gdalwarp -dstalpha -wo INIT_DEST=NO_DATA -wm 1000 -co COMPRESS=DEFLATE -co TILED=YES -co BIGTIFF=YES N000E100.150.deflate.tif N000E104.150.deflate.tif test.tif will emit at around 20% with : ERROR 2: Out of memory allocating -977207296 bytes for DstDensity mask. ",defect,closed,normal,1.8.1,Algorithms,unspecified,normal,fixed,gdalwarp,