Opened 13 years ago

Closed 13 years ago

#4042 closed defect (fixed)

gdalwarp doesn't take into account the memory needed by DstDensity mask

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 1.8.1
Component: Algorithms Version: unspecified
Severity: normal Keywords: gdalwarp
Cc:

Description

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.

Change History (1)

comment:1 by Even Rouault, 13 years ago

Milestone: 1.8.1
Resolution: fixed
Status: newclosed

r22161 /trunk/gdal/alg/gdalwarpoperation.cpp: gdalwarp: take into account memory needed by DstDensity float mask when computing chunk dimensions (#4042)

r22162 /branches/1.8/gdal/alg/gdalwarpoperation.cpp: gdalwarp: take into account memory needed by DstDensity float mask when computing chunk dimensions (#4042)

Note: See TracTickets for help on using tickets.