Change netcdf driver to read and write in the bottom-up order by default
|Reported by:||etourigny||Owned by:||etourigny|
Currently the driver (GDAL) expects top-down for projected crs but netCDF is bottom-up approach.
The driver needs to read and write bottom-up by default, unless it is detected that the file was written by and older version of the netcdf driver (which wrote top-down). Will soon be released along with other changes in the driver.
This fixes issues where there crs is not recognized (i.e. rotated pole, bug #4251)
A quick fix to fix proper (bottom-up) import is to set bBottomUp = TRUE in the netCDFDataset constructor, however this may cause problems with files created by the old (current) netcdf driver.
And to fix the proper export, around line 369 (in the part that deals with projected crs):
/* netcdf standard is bottom-up, but leave it top first for now */ bBottomUp = TRUE;