void GDALRegister_HDF5() { if( GDALGetDriverByName("HDF5") != nullptr ) return; GDALDriver *poDriver = new GDALDriver(); poDriver->SetDescription("HDF5"); poDriver->SetMetadataItem(GDAL_DCAP_RASTER, "YES"); poDriver->SetMetadataItem(GDAL_DMD_LONGNAME, "Hierarchical Data Format Release 5"); poDriver->SetMetadataItem(GDAL_DMD_HELPTOPIC, "frmt_hdf5.html"); poDriver->SetMetadataItem(GDAL_DMD_EXTENSIONS, "h5 hdf5"); poDriver->SetMetadataItem(GDAL_DMD_SUBDATASETS, "YES"); poDriver->pfnOpen = HDF5Dataset::Open; poDriver->pfnIdentify = HDF5Dataset::Identify; GetGDALDriverManager()->RegisterDriver(poDriver); #ifdef HDF5_PLUGIN GDALRegister_HDF5Image(); GDALRegister_BAG(); #endif }
void CPL_STDCALL GDALAllRegister() { GetGDALDriverManager()->AutoLoadDrivers(); #ifdef FRMT_vrt GDALRegister_VRT(); #endif #ifdef FRMT_gdb GDALRegister_GDB(); #endif #ifdef FRMT_gtiff GDALRegister_GTiff(); #endif #ifdef FRMT_nitf GDALRegister_NITF(); GDALRegister_RPFTOC(); #endif #ifdef FRMT_hfa GDALRegister_HFA(); #endif #ifdef FRMT_ceos2 GDALRegister_SAR_CEOS(); #endif #ifdef FRMT_ceos GDALRegister_CEOS(); #endif #ifdef FRMT_jaxapalsar GDALRegister_PALSARJaxa(); #endif #ifdef FRMT_gff GDALRegister_GFF(); #endif #ifdef FRMT_elas GDALRegister_ELAS(); #endif #ifdef FRMT_aigrid // GDALRegister_AIGrid2(); GDALRegister_AIGrid(); #endif #ifdef FRMT_aaigrid GDALRegister_AAIGrid(); #endif #ifdef FRMT_sdts GDALRegister_SDTS(); #endif #ifdef FRMT_ogdi GDALRegister_OGDI(); #endif #ifdef FRMT_dted GDALRegister_DTED(); #endif #ifdef FRMT_png GDALRegister_PNG(); #endif #ifdef FRMT_jpeg GDALRegister_JPEG(); #endif #ifdef FRMT_mem GDALRegister_MEM(); #endif #ifdef FRMT_jdem GDALRegister_JDEM(); #endif #ifdef FRMT_gif GDALRegister_GIF(); GDALRegister_BIGGIF(); #endif #ifdef FRMT_envisat GDALRegister_Envisat(); #endif #ifdef FRMT_fits GDALRegister_FITS(); #endif #ifdef FRMT_bsb GDALRegister_BSB(); #endif #ifdef FRMT_xpm GDALRegister_XPM(); #endif #ifdef FRMT_bmp GDALRegister_BMP(); #endif #ifdef FRMT_dimap GDALRegister_DIMAP(); #endif #ifdef FRMT_airsar GDALRegister_AirSAR(); #endif #ifdef FRMT_rs2 GDALRegister_RS2(); #endif #ifdef FRMT_pcidsk GDALRegister_PCIDSK(); #endif #ifdef FRMT_pcraster GDALRegister_PCRaster(); #endif #ifdef FRMT_ilwis GDALRegister_ILWIS(); #endif #ifdef FRMT_sgi GDALRegister_SGI(); #endif #ifdef FRMT_srtmhgt GDALRegister_SRTMHGT(); #endif #ifdef FRMT_leveller GDALRegister_Leveller(); #endif #ifdef FRMT_terragen GDALRegister_Terragen(); #endif #ifdef FRMT_netcdf GDALRegister_GMT(); GDALRegister_netCDF(); #endif #ifdef FRMT_hdf4 GDALRegister_HDF4(); GDALRegister_HDF4Image(); #endif #ifdef FRMT_pds GDALRegister_ISIS3(); GDALRegister_ISIS2(); GDALRegister_PDS(); #endif #ifdef FRMT_til GDALRegister_TIL(); #endif #ifdef FRMT_ers GDALRegister_ERS(); #endif #ifdef FRMT_jp2kak // JPEG2000 support using Kakadu toolkit GDALRegister_JP2KAK(); #endif #ifdef FRMT_ecw GDALRegister_ECW(); GDALRegister_JP2ECW(); #endif #ifdef FRMT_jpeg2000 // JPEG2000 support using JasPer toolkit // This one should always be placed after other JasPer supported formats, // such as BMP or PNM. In other case we will get bad side effects. GDALRegister_JPEG2000(); #endif #ifdef FRMT_l1b GDALRegister_L1B(); #endif #ifdef FRMT_fit GDALRegister_FIT(); #endif #ifdef FRMT_grib GDALRegister_GRIB(); #endif #ifdef FRMT_mrsid GDALRegister_MrSID(); #endif #ifdef FRMT_rmf GDALRegister_RMF(); #endif #ifdef FRMT_wcs GDALRegister_WCS(); #endif #ifdef FRMT_wms GDALRegister_WMS(); #endif #ifdef FRMT_sde GDALRegister_SDE(); #endif #ifdef FRMT_msgn GDALRegister_MSGN(); #endif #ifdef FRMT_msg GDALRegister_MSG(); #endif #ifdef FRMT_idrisi GDALRegister_IDRISI(); #endif #ifdef FRMT_ingr GDALRegister_INGR(); #endif #ifdef FRMT_gsg GDALRegister_GSAG(); GDALRegister_GSBG(); GDALRegister_GS7BG(); #endif #ifdef FRMT_cosar GDALRegister_COSAR(); #endif #ifdef FRMT_tsx GDALRegister_TSX(); #endif #ifdef FRMT_coasp GDALRegister_COASP(); #endif #ifdef FRMT_tms GDALRegister_TMS(); #endif #ifdef FRMT_r GDALRegister_R(); #endif /* -------------------------------------------------------------------- */ /* Put raw formats at the end of the list. These drivers support */ /* various ASCII-header labeled formats, so the driver could be */ /* confused if you have files in some of above formats and such */ /* ASCII-header in the same directory. */ /* -------------------------------------------------------------------- */ #ifdef FRMT_raw GDALRegister_PNM(); GDALRegister_DOQ1(); GDALRegister_DOQ2(); GDALRegister_ENVI(); GDALRegister_EHdr(); GDALRegister_GenBin(); GDALRegister_PAux(); GDALRegister_MFF(); GDALRegister_HKV(); GDALRegister_FujiBAS(); GDALRegister_GSC(); GDALRegister_FAST(); GDALRegister_BT(); GDALRegister_LAN(); GDALRegister_CPG(); GDALRegister_IDA(); GDALRegister_NDF(); GDALRegister_EIR(); GDALRegister_DIPEx(); GDALRegister_LCP(); #endif /* -------------------------------------------------------------------- */ /* Our test for the following is weak or expensive so we try */ /* them last. */ /* -------------------------------------------------------------------- */ #ifdef FRMT_rik GDALRegister_RIK(); #endif #ifdef FRMT_usgsdem GDALRegister_USGSDEM(); #endif #ifdef FRMT_gxf GDALRegister_GXF(); #endif #ifdef FRMT_grass GDALRegister_GRASS(); #endif #ifdef FRMT_dods GDALRegister_DODS(); #endif #ifdef FRMT_wcs GDALRegister_HTTP(); #endif #ifdef FRMT_hdf5 GDALRegister_BAG(); GDALRegister_HDF5(); GDALRegister_HDF5Image(); #endif #ifdef FRMT_northwood GDALRegister_NWT_GRD(); GDALRegister_NWT_GRC(); #endif #ifdef FRMT_adrg GDALRegister_ADRG(); GDALRegister_SRP(); #endif #ifdef FRMT_blx GDALRegister_BLX(); #endif #ifdef FRMT_pgchip GDALRegister_PGCHIP(); #endif #ifdef FRMT_georaster GDALRegister_GEOR(); #endif #ifdef FRMT_rasterlite GDALRegister_Rasterlite(); #endif #ifdef FRMT_epsilon GDALRegister_EPSILON(); #endif #ifdef FRMT_wktraster GDALRegister_WKTRaster(); #endif #ifdef FRMT_saga GDALRegister_SAGA(); #endif /* -------------------------------------------------------------------- */ /* Deregister any drivers explicitly marked as supressed by the */ /* GDAL_SKIP environment variable. */ /* -------------------------------------------------------------------- */ GetGDALDriverManager()->AutoSkipDrivers(); }