Opened 21 years ago
Last modified 8 years ago
#393 closed defect (fixed)
ECW, GetGeoTransform returns posetive fCellIncrementY — at Initial Version
Reported by: | Owned by: | warmerdam | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | GDAL_Raster | Version: | unspecified |
Severity: | minor | Keywords: | ECW |
Cc: | gaopeng, rprinceley, Mateusz Łoskot |
Description
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[5] > 0.0) padfTransform[5] = -padfTransform[5]; And if (adfGeoTransform[5] > 0.0) adfGeoTransform[5] = -adfGeoTransform[5]; 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.
Note:
See TracTickets
for help on using tickets.