Opened 6 years ago

Closed 6 years ago

#4042 closed defect (fixed)

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

Reported by: rouault Owned by: 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 Changed 6 years ago by rouault

  • Milestone set to 1.8.1
  • Resolution set to fixed
  • Status changed from new to closed

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.