Opened 17 years ago
Closed 13 years ago
#1639 closed enhancement (fixed)
patch for frmt/dods : re-enables georeferencing
Reported by: | guest | Owned by: | dnadeau |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | GDAL_Raster | Version: | unspecified |
Severity: | normal | Keywords: | dods |
Cc: | cermak@…, warmerdam |
Description (last modified by )
OPeNDAP changed how the global attributes are given to the client. Upgrading the search for GLOBAL to NC_GLOBAL and HDF_GLOBAL allowed the driver to find the spatial_ref and GeoTransform metadata.
The patch also works against 1.4.1
Patch: http://ak.aoos.org/data/patch/dods_geo.patch --- dodsdataset2.cpp.ak 2006-05-05 11:51:25.000000000 -0800 +++ dodsdataset2.cpp 2006-05-05 11:46:12.000000000 -0800 @@ -684,8 +684,18 @@ if( poFileInfo == NULL ) { - CPLDebug( "DODS", "No GLOBAL DAS info." ); - return; + poFileInfo = oDAS.find_container( "NC_GLOBAL" ); + + if( poFileInfo == NULL ) + { + poFileInfo = oDAS.find_container( "HDF_GLOBAL" ); + + if( poFileInfo == NULL ) + { + CPLDebug( "DODS", "No GLOBAL DAS info." ); + return; + } + } } /* -------------------------------------------------------------------- */
Change History (2)
comment:1 by , 16 years ago
Cc: | added |
---|---|
Component: | default → GDAL_Raster |
Description: | modified (diff) |
Keywords: | dods added |
Milestone: | 1.5.0 |
comment:2 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Was applied long time ago in r11410