Changes between Version 4 and Version 5 of NetCDF_exportUpdateChanges


Ignore:
Timestamp:
Sep 21, 2011, 10:07:35 PM (13 years ago)
Author:
pds
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NetCDF_exportUpdateChanges

    v4 v5  
    4141
    4242
    43 === Continue saving NetCDF "spatial_ref" attribute by default, but add option not to save ===
     43=== Continue saving NetCDF custom attribute tags by default, but add option not to save ===
    4444
    45 *Related tix*: #4251 [[BR]]
    46 *New -co options*: -co WRITEGDALTAGS (yes/no, defaults to yes)[[BR]]
    47 *Rationale*: We assume by default that if users export to a NetCDF file from GDAL, then they may wish to import into GDAL again and retain full information. Currently, the CF-1 convention doesn't allow saving all the projection information that GDAL can manipulate via a WKT (such as named Datums, and EPSG authorities).
     45''Related tix'': N/A [[BR]]
     46''New -co options'': -co WRITEGDALTAGS (yes/no, defaults to yes)[[BR]]
     47''Has back-compat impact?'': No
     48
     49''Change'':
     50
     51Currently, as well as following the CF-1 conventions to save projection metadata, the NetCDF driver also writes metadata in several custom attributes:
     52 * A "spatial_ref" tag containing full OGC WKT string, including datum and EPSG codes if known
     53 * A geotransform array, saved as a string (!GeoTransform).
     54
     55The WRITEGDALTAGS driver creation option would allow the user to choose not to write these tags. However it would be set to 'YES' by default.
     56
     57''Rationale'':
     58
     59We assume by default that if users export to a NetCDF file from GDAL, then they may wish to import into GDAL again and retain full information. Currently, the CF-1 convention doesn't allow saving all the projection information that GDAL can manipulate via a WKT (such as named Datums, and EPSG authorities).
    4860
    4961However, there is certainly a use-case to export to a NetCDF file with no intention to access again via GDAL and use purely for use by CF-1 applications, in which case we don't need to save the added metadata.