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

Stephen Woodbridge woodbri at swoodbridge.com
Mon Dec 17 11:50:27 PST 2012


Hi all,

I have an ECW file, see gdal info below.  I need to reproject this into 
EPSG:900913 or EPSG:3857

Do I need a key to make the output file ECW?

The performance vs size when zooming out is impressive with ECW, but it 
does not look like I have ability to create ECW. Are there better 
formats then GTif in the list below?


$ gdalwarp -t_srs EPSG:900913 -of GTiff -co TILED=YES -co COMPRESS=JPEG 
Saraji_South.ecw Saraji_South-900913.tif
Creating output file that is 34551P x 32332L.
Processing input file Saraji_South.ecw.
0...10...

This seems to be working, I suspect this will bulk up after I add overviews.

Thanks,
   -Steve

$ gdalinfo --formats | grep ECW
   ECW (rw): ERDAS Compressed Wavelets (SDK 3.x)
   JP2ECW (rw+v): ERDAS JPEG2000 (SDK 3.x)

i$ 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:
   VRT: Virtual Raster
   GTiff: GeoTIFF
   NITF: National Imagery Transmission Format
   HFA: Erdas Imagine Images (.img)
   ELAS: ELAS
   MEM: In Memory Raster
   BMP: MS Windows Device Independent Bitmap
   PCIDSK: PCIDSK Database File
   ILWIS: ILWIS Raster Map
   SGI: SGI Image File Format 1.0
   Leveller: Leveller heightfield
   Terragen: Terragen heightfield
   netCDF: Network Common Data Format
   HDF4Image: HDF4 Dataset
   ISIS2: USGS Astrogeology ISIS cube (Version 2)
   ERS: ERMapper .ers Labelled
   JP2ECW: ERDAS JPEG2000 (SDK 3.x)
   RMF: Raster Matrix Format
   RST: Idrisi Raster A.1
   INGR: Intergraph Raster
   GSBG: Golden Software Binary Grid (.grd)
   PNM: Portable Pixmap Format (netpbm)
   ENVI: ENVI .hdr Labelled
   EHdr: ESRI .hdr Labelled
   PAux: PCI .aux Labelled
   MFF: Vexcel MFF Raster
   MFF2: Vexcel MFF2 (HKV) Raster
   BT: VTP .bt (Binary Terrain) 1.3 Format
   LAN: Erdas .LAN/.GIS
   IDA: Image Data and Analysis
   GTX: NOAA Vertical Datum .GTX
   NTv2: NTv2 Datum Grid Shift
   ADRG: ARC Digitized Raster Graphics
   SAGA: SAGA GIS Binary Grid (.sdat)


$ gdalinfo Saraji_South.ecw
Driver: ECW/ERDAS Compressed Wavelets (SDK 3.x)
Files: Saraji_South.ecw
        Saraji_South.eww
Size is 34361, 31930
Coordinate System is:
PROJCS["SUTM55",
     GEOGCS["AUSTRALIAN GEODETIC",
         DATUM["AGD66",
             SPHEROID["ANS",6378160,298.25]],
         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 = (627267.025999999954365,7521500.000000000000000)
Pixel Size = (0.500000000000000,-0.500000000000000)
Corner Coordinates:
Upper Left  (  627267.026, 7521500.000) (148d14'11.23"E, 22d24'28.15"S)
Lower Left  (  627267.026, 7505535.000) (148d14'15.84"E, 22d33' 7.25"S)
Upper Right (  644447.526, 7521500.000) (148d24'11.99"E, 22d24'23.24"S)
Lower Right (  644447.526, 7505535.000) (148d24'17.23"E, 22d33' 2.31"S)
Center      (  635857.276, 7513517.500) (148d19'14.07"E, 22d28'45.31"S)
Band 1 Block=34361x1 Type=Byte, ColorInterp=Red
   Overviews: 17180x15965, 8590x7982, 4295x3991, 2147x1995, 1073x997, 
536x498, 268x249
Band 2 Block=34361x1 Type=Byte, ColorInterp=Green
   Overviews: 17180x15965, 8590x7982, 4295x3991, 2147x1995, 1073x997, 
536x498, 268x249
Band 3 Block=34361x1 Type=Byte, ColorInterp=Blue
   Overviews: 17180x15965, 8590x7982, 4295x3991, 2147x1995, 1073x997, 
536x498, 268x249


More information about the gdal-dev mailing list