On 12/17/2012 4:54 PM, Even Rouault wrote:
$ gdalwarp -t_srs EPSG:900913 -of ECW Saraji_South.ecw
Saraji_South-900913.ecw Output driver
`ECW' not recognised or does not support
direct output file creation. The following format drivers are configured
and support direct output:
...
JP2ECW: ERDAS JPEG2000 (SDK 3.x)
...
but ECW is not in the list. Am I doing this wrong?
Nothing, but ECW does not support the Create() interface needed by gdalwarp.
You could gdalwarp to a VRT file and then gdal_translate it into ECW
If I try this on my file:
ls -lh Saraji_South.ecw
-rw-r--r-- 1 woodbri woodbri 220M 2012-12-17 10:47 Saraji_South.ecw
$ gdalwarp -t_srs EPSG:900913 -of JP2ECW Saraji_South.ecw
Saraji_South-900913.jp2
Creating output file that is 34551P x 32332L.
Processing input file Saraji_South.ecw.
0ERROR 1: ECW SDK 500MB compress limit exceeded.
ERROR 1: ECW SDK 500MB compress limit exceeded.
ERROR 1: ECW SDK 500MB compress limit exceeded.
ERROR 1: An error occured while writing a dirty block
ERROR 1: Saraji_South-900913.jp2, band 2: An error occured while writing
a dirty block
ERROR 1: Saraji_South-900913.jp2, band 3: An error occured while writing
a dirty block
ok, so this must mean the uncompressed file needs to be less than 500MB.
Yes, and using JP2ECW driver with .ecw extension probably confuses the driver
on whether you want ECW or JPEG2000
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?
-Steve
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev