Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#4220 closed enhancement (fixed)

Add support for updating geotransform and projection info of a ECW file

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 1.9.0
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords: ecw
Cc: yjacolin

Description

The NCSEcwEditWriteInfo() API enable us to update in place the geotransform and projection info of an existing ECW file. It is then possible to implement SetProjection(), SetGeoTransform(). SetMetadataItem() can be implement to override directly the values of DATUM, PROJ and UNITS for finer control.

Change History (6)

comment:1 by Even Rouault, 13 years ago

Cc: yjacolin added

r23017 /trunk/ (7 files in 3 dirs): ECW: Add support for updating geotransform and projection info of a ECW file (#4220)

comment:2 by Even Rouault, 13 years ago

r23018 /trunk/gdal/frmts/ecw/ (ecwdataset.cpp gdal_ecw.h): ECW: implement SetMetadata() for consistency; fix compution of dirty flag in SetMetadataItem() (#4220)

comment:3 by Even Rouault, 13 years ago

r23019 /trunk/gdal/swig/python/samples/ (README gdal_edit.py): Add new sample utility, gdal_edit.py, to edit in place various information of an existing GDAL dataset (projection, geotransform, nodata, metadata) (#4220)

For example:

python swig/python/samples/gdal_edit.py test.ecw -mo PROJ=GEODETIC -mo DATUM=WGS84 -a_ullr 2 49 3 48

comment:4 by Even Rouault, 13 years ago

r23020 /trunk/gdal/frmts/ecw/ecwdataset.cpp: ECW: WriteHeader( ) must be called after closing the file handle to work on Windows ( #4220 )

comment:5 by Even Rouault, 13 years ago

Resolution: fixed
Status: newclosed

r23021 /trunk/gdal/frmts/ecw/ ( ecwcreatecopy.cpp ecwdataset.cpp gdal_ecw.h ): ECW: Fix build with ECW SDK 4.2 ( #4220 )

comment:6 by Even Rouault, 13 years ago

r23067 /trunk/gdal/ ( configure configure.in ): configure: also add -lNCSEcwC when using ./configure --with-ecw[=yes] ( #4220 )

Note: See TracTickets for help on using tickets.