Ticket #2296: gdal-hdf4-UNKNOWN.diff

File gdal-hdf4-UNKNOWN.diff, 1.3 KB (added by vincentschut, 8 years ago)
  • frmts/hdf4/hdf4imagedataset.cpp

     
    23172317    else if( EQUAL( papszSubdatasetName[1], "HYPERION_L1" ) )
    23182318        poDS->iSubdatasetType= HYPERION_L1;
    23192319    else
    2320         poDS->iSubdatasetType = UNKNOWN;
     2320        poDS->iSubdatasetType = UNKNOWNPRODUCT;
    23212321
    23222322    // Is our file still here?
    23232323    if ( !Hishdf( poDS->pszFilename ) )
  • frmts/hdf4/hdf4dataset.h

     
    5151    SEAWIFS_L2,                 // SeaWiFS Level-2 Data
    5252    SEAWIFS_L3,                 // SeaWiFS Level-3 Standard Mapped Image
    5353    HYPERION_L1,                // Hyperion L1 Data Product
    54     UNKNOWN
     54    UNKNOWNPRODUCT
    5555} HDF4SubdatasetType;
    5656
    5757/************************************************************************/
  • frmts/hdf4/hdf4dataset.cpp

     
    740740
    741741    else
    742742    {
    743         poDS->iSubdatasetType = UNKNOWN;
     743        poDS->iSubdatasetType = UNKNOWNPRODUCT;
    744744        poDS->pszSubdatasetType = "UNKNOWN";
    745745    }
    746746