Opened 17 years ago

Last modified 13 years ago

#1639 closed enhancement

patch for frmt/dods : re-enables georeferencing — at Initial Version

Reported by: guest Owned by: dnadeau
Priority: normal Milestone:
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords: dods
Cc: cermak@…, warmerdam

Description

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 (0)

Note: See TracTickets for help on using tickets.