[gdal-dev] Problem with gdal_translate and specific ECW file

Andrew Williams AWilliams at rapidmap.com.au
Sun Jul 1 19:16:50 PDT 2012


Folks,
I have an ECW which was supplied as a set of 4 from the same supplier.

As part of a process to make the image usable with a legacy system I create a series of tiles from the ECW as GTIFF.

I have done this successfully many times.

3 of the 4 images processed without issue.

One however causes gdal_translate to crash completely.

Gdalinfo returns the following

Driver: ECW/ERMapper Compressed Wavelets
Files: C:\Current Projects\image.ecw
Size is 330000, 170000
Coordinate System is:
PROJCS["MGA55",
    GEOGCS["GEOCENTRIC DATUM of AUSTRALIA",
        DATUM["GDA94",
            SPHEROID["GRS80",6378137,298.257222101]],
        PRIMEM["Greenwich",0],
        UNIT["degree",0.0174532925199433]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",0],
    PARAMETER["central_meridian",147],
    PARAMETER["scale_factor",0.9996],
    PARAMETER["false_easting",500000],
    PARAMETER["false_northing",10000000],
    UNIT["Meter",1]]
Origin = (285999.999998596960000,5812000.000001333700000)
Pixel Size = (0.100000000000000,-0.100000000000000)
Corner Coordinates:
Upper Left  (  286000.000, 5812000.000) (144d34'7.92"E, 37d48'51.61"S)
Lower Left  (  286000.000, 5795000.000) (144d33'49.77"E, 37d58'2.71"S)
Upper Right (  319000.000, 5812000.000) (144d56'36.67"E, 37d49'17.31"S)
Lower Right (  319000.000, 5795000.000) (144d56'21.31"E, 37d58'28.55"S)
Center      (  302500.000, 5803500.000) (144d45'13.88"E, 37d53'40.58"S)
Band 1 Block=330000x1 Type=Byte, ColorInterp=Red
  Overviews: arbitrary
Band 2 Block=330000x1 Type=Byte, ColorInterp=Green
  Overviews: arbitrary
Band 3 Block=330000x1 Type=Byte, ColorInterp=Blue
  Overviews: arbitrary

This is an example of the gdal_translate command line run from FWTOOLS Shell

gdal_translate -of GTIFF -projwin 286000 5796000 287000 5795000 "C:\Current Projects\image.ecw" "C:\Current Projects\image1.TIF"

Running this process begins and gets this far

Input file size is 330000, 170000
Computed -srcwin 0 160000 10000 10000 from projected window.
0

I have tried other -proj windows in the set, all crash.

Bear in mind the same command line pattern was used for three other images successfully.

I have tried two different PCs with the same result.

I suspect the image itself but not sure what it might be.

The image is quite large (4.7Gb) so sending it to someone for analysis will be difficult.

Any advice appreciated.

Andrew

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20120702/02248718/attachment.html>


More information about the gdal-dev mailing list