Ticket #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
Note: See
TracTickets for help on using
tickets.
