ECW, GetGeoTransform returns posetive fCellIncrementY
|Reported by:||llo@…||Owned by:||warmerdam|
|Cc:||gaopeng, rprinceley, mloskot|
Description (last modified by gaopeng)
Trying to display some sample ECW datasets, using Mapserver/GDAL failed, but the ECW files worked with some mapInfo product using a .tab file with georefrence info. The problem was that the images was ignored due to a posetive fCellIncrementY returned from GetGeoTransform. The following fix, was done on the GDAL CVS version from 16 June 03. I added the following code to ECWDataset::GetGeoTransform, line 466 if (padfTransform > 0.0) padfTransform = -padfTransform; And if (adfGeoTransform > 0.0) adfGeoTransform = -adfGeoTransform; To GDALDataset *ECWCreateCopy, before line 671. The the problem was solved. I dont know if this is a problem in the ECW driver, or if the problem is caused by a malformed ECW georeferencing info.
Change History (13)
comment:2 Changed 6 years ago by gaopeng
- Description modified (diff)
- Resolution invalid deleted
- Status changed from closed to reopened
comment:11 Changed 6 years ago by warmerdam
- Resolution set to fixed
- Status changed from reopened to closed
Note: See TracTickets for help on using tickets.