[gdal-dev] Q: on gdalwarp of ecw file

Stephen Woodbridge woodbri at swoodbridge.com
Mon Dec 17 14:54:23 PST 2012


On 12/17/2012 5:02 PM, Stephen Woodbridge wrote:
> On 12/17/2012 4:54 PM, Even Rouault wrote:
>>>
>>> Second problem, when I try to convert it to a tif it always dies like
>>> this:
>>>
>>> $ gdalwarp -t_srs EPSG:900913 -of GTiff -co TILED=YES -co COMPRESS=JPEG
>>> -co PHOTOMETRIC=YCBCR Saraji_South.ecw Saraji_South-900913.tif
>>> Creating output file that is 34551P x 32332L.
>>> Processing input file Saraji_South.ecw.
>>> 0...10...20..ERROR 1: Could not perform Read/Write on file
>>
>> Hum, did you check if you have enough disk space ?
>>
> target disk has 200GB but maybe the /tmp is small, is there a way to set
> an environment variable to open tmp file elsewhere?

Hi Even,

This is not related to disk space. I just monitored with df and there 
were no problems, and not even a close call on space.

gdalwarp creates the file and actually writes some to it:

$ gdalwarp --config CPL_TMPDIR . -t_srs EPSG:900913 -of GTiff -co 
TILED=YES -co COMPRESS=JPEG -co PHOTOMETRIC=YCBCR Saraji_South.ecw 
Saraji_South-900913.tif
Creating output file that is 34551P x 32332L.
Processing input file Saraji_South.ecw.
0...10...20..ERROR 1: Could not perform Read/Write on file

ls -l Saraji_South-900913.tif
-rw-r--r--  1 woodbri woodbri  57130007 2012-12-17 17:43 
Saraji_South-900913.tif


I renamed the file and run the command again, it creates another file of 
exactly the same size.

-rw-r--r-- 1 woodbri woodbri  57130007 2012-12-17 17:57 
Saraji_South-900913a.tif
-rw-r--r-- 1 woodbri woodbri  57130007 2012-12-17 17:43 
Saraji_South-900913.tif

And they appear to byte for byte identical using cmp.

Thanks,
   -Steve


More information about the gdal-dev mailing list