Ticket #2654 (closed defect: fixed)
[PATCH] Fix flipped latitude with NetCDF CF-1 files
|Reported by:||ekato||Owned by:||warmerdam|
|Cc:||neteler, dnadeau, mdsumner, kyle|
Maybe related to JoseM's comment in #2584, I've experienced getting upside-down image with NetCDF driver. So I've created a simple patch to flip latitude for CF-1.0 files.
In netCDFDataset::SetProjection?(), I assume the files with following attributes as CF-1.0 files.
- have valid nVarDimXID and nVarDimYID
- poDS->papszDimName[poDS->nDimYid] starts with "lat"
- pdfYCoord < pdfYCoord[ydim-1]