Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#4220 closed enhancement (fixed)

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

Reported by: rouault Owned by: 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 Changed 5 years ago by rouault

  • 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 Changed 5 years ago by rouault

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 Changed 5 years ago by rouault

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 Changed 5 years ago by rouault

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

comment:5 Changed 5 years ago by rouault

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:6 Changed 5 years ago by rouault

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.