756
756
int32 aiDimSizes[H4_MAX_VAR_DIMS];
757
757
int32 iRank, iNumType, nAttrs;
759
760
// Sometimes "HDFEOSVersion" attribute is not defined and we will
760
761
// determine HDF-EOS datasets using other records
761
762
// (see ReadGlobalAttributes() method).
763
764
|| CSLFetchNameValue(poDS->papszGlobalMetadata, "HDFEOSVersion") )
765
768
int32 nSubDatasets, nStrBufSize;
767
770
/* -------------------------------------------------------------------- */
768
771
/* Process swath layers. */
769
772
/* -------------------------------------------------------------------- */
770
773
hHDF4 = SWopen( poOpenInfo->pszFilename, DFACC_READ );
777
CPLError( CE_Failure, CPLE_OpenFailed, "Failed to open HDF4 `%s'.\n", poOpenInfo->pszFilename );
771
780
nSubDatasets = SWinqswath(poOpenInfo->pszFilename, NULL, &nStrBufSize);
773
782
CPLDebug( "HDF4", "Number of HDF-EOS swaths: %d", (int)nSubDatasets );