Line data Source code
1 : /****************************************************************************** 2 : * 3 : * Project: OpenGIS Simple Features Reference Implementation 4 : * Purpose: Function to register all known OGR drivers. 5 : * Author: Frank Warmerdam, warmerdam@pobox.com 6 : * 7 : ****************************************************************************** 8 : * Copyright (c) 1999, Les Technologies SoftMap Inc. 9 : * Copyright (c) 2007-2014, Even Rouault <even dot rouault at spatialys.com> 10 : * 11 : * SPDX-License-Identifier: MIT 12 : ****************************************************************************/ 13 : 14 : #include "ogrsf_frmts.h" 15 : 16 : /************************************************************************/ 17 : /* OGRRegisterAll() */ 18 : /************************************************************************/ 19 : 20 : /** 21 : \brief Register all drivers. 22 : 23 : @deprecated Use GDALAllRegister() 24 : */ 25 344 : void OGRRegisterAll() 26 : { 27 344 : GDALAllRegister(); 28 344 : } 29 : 30 2058 : void OGRRegisterAllInternal() 31 : { 32 : // NOTE: frmts/drivers.ini in the same directory should be kept in same 33 : // order as this file 34 : 35 : #ifdef SHAPE_ENABLED 36 2058 : RegisterOGRShape(); 37 : #endif 38 : #ifdef MITAB_ENABLED 39 2058 : RegisterOGRTAB(); 40 : #endif 41 : #ifdef LVBAG_ENABLED 42 2058 : RegisterOGRLVBAG(); 43 : #endif 44 : #ifdef S57_ENABLED 45 2058 : RegisterOGRS57(); 46 : #endif 47 : #ifdef DGN_ENABLED 48 2058 : RegisterOGRDGN(); 49 : #endif 50 : #ifdef VRT_ENABLED 51 2058 : RegisterOGRVRT(); 52 : #endif 53 : #ifdef CSV_ENABLED 54 2058 : RegisterOGRCSV(); 55 : #endif 56 : #ifdef NAS_ENABLED 57 2058 : RegisterOGRNAS(); 58 : #endif 59 : #ifdef GML_ENABLED 60 2058 : RegisterOGRGML(); 61 : #endif 62 : #ifdef GPX_ENABLED 63 2058 : RegisterOGRGPX(); 64 : #endif 65 : #ifdef LIBKML_ENABLED 66 : RegisterOGRLIBKML(); 67 : #endif 68 : #ifdef KML_ENABLED 69 2058 : RegisterOGRKML(); 70 : #endif 71 : #ifdef GEOJSON_ENABLED 72 2058 : RegisterOGRGeoJSON(); 73 2058 : RegisterOGRGeoJSONSeq(); 74 2058 : RegisterOGRESRIJSON(); 75 2058 : RegisterOGRTopoJSON(); 76 : #endif 77 : #ifdef ILI_ENABLED 78 2058 : RegisterOGRILI1(); 79 2058 : RegisterOGRILI2(); 80 : #endif 81 : #ifdef GMT_ENABLED 82 2058 : RegisterOGRGMT(); 83 : #endif 84 : #ifdef GPKG_ENABLED 85 2058 : RegisterOGRGeoPackage(); 86 : #endif 87 : #ifdef SQLITE_ENABLED 88 2058 : RegisterOGRSQLite(); 89 : #endif 90 : #ifdef ODBC_ENABLED 91 : RegisterOGRODBC(); 92 : #endif 93 : #ifdef WASP_ENABLED 94 2058 : RegisterOGRWAsP(); 95 : #endif 96 : #ifdef PGEO_ENABLED 97 2058 : RegisterOGRPGeo(); 98 : #endif 99 : #ifdef MSSQLSPATIAL_ENABLED 100 : RegisterOGRMSSQLSpatial(); 101 : #endif 102 : #ifdef PG_ENABLED 103 : RegisterOGRPG(); 104 : #endif 105 : #ifdef MYSQL_ENABLED 106 : RegisterOGRMySQL(); 107 : #endif 108 : #ifdef OCI_ENABLED 109 : RegisterOGROCI(); 110 : #endif 111 : /* Register OpenFileGDB before FGDB as it is more capable for read-only */ 112 : #ifdef OPENFILEGDB_ENABLED 113 2058 : RegisterOGROpenFileGDB(); 114 : #endif 115 : #ifdef FGDB_ENABLED 116 : RegisterOGRFileGDB(); 117 : #endif 118 : #ifdef DWG_ENABLED 119 : RegisterOGRDWG(); 120 : #endif 121 : #ifdef DGNV8_ENABLED 122 : RegisterOGRDGNV8(); 123 : #endif 124 : #ifdef DXF_ENABLED 125 2058 : RegisterOGRDXF(); 126 : #endif 127 : #ifdef CAD_ENABLED 128 : RegisterOGRCAD(); 129 : #endif 130 : #ifdef FLATGEOBUF_ENABLED 131 2058 : RegisterOGRFlatGeobuf(); 132 : #endif 133 : #ifdef IDB_ENABLED 134 : RegisterOGRIDB(); 135 : #endif 136 : #ifdef GEORSS_ENABLED 137 2058 : RegisterOGRGeoRSS(); 138 : #endif 139 : #ifdef VFK_ENABLED 140 : RegisterOGRVFK(); 141 : #endif 142 : #ifdef PGDUMP_ENABLED 143 2058 : RegisterOGRPGDump(); 144 : #endif 145 : #ifdef OSM_ENABLED 146 : /* Register before GPSBabel, that could recognize .osm file too */ 147 2058 : RegisterOGROSM(); 148 : #endif 149 : #ifdef GPSBABEL_ENABLED 150 2058 : RegisterOGRGPSBabel(); 151 : #endif 152 : #ifdef PDS_ENABLED 153 2058 : RegisterOGRPDS(); 154 : #endif 155 : #ifdef WFS_ENABLED 156 2058 : RegisterOGRWFS(); 157 : #endif 158 : #ifdef OAPIF_ENABLED 159 2058 : RegisterOGROAPIF(); 160 : #endif 161 : #ifdef SOSI_ENABLED 162 : RegisterOGRSOSI(); 163 : #endif 164 : #ifdef EDIGEO_ENABLED 165 2058 : RegisterOGREDIGEO(); 166 : #endif 167 : #ifdef IDRISI_ENABLED 168 2058 : RegisterOGRIdrisi(); 169 : #endif 170 : #ifdef XLS_ENABLED 171 : RegisterOGRXLS(); 172 : #endif 173 : #ifdef ODS_ENABLED 174 2058 : RegisterOGRODS(); 175 : #endif 176 : #ifdef XLSX_ENABLED 177 2058 : RegisterOGRXLSX(); 178 : #endif 179 : #ifdef ELASTIC_ENABLED 180 2058 : RegisterOGRElastic(); 181 : #endif 182 : #ifdef CARTO_ENABLED 183 2058 : RegisterOGRCarto(); 184 : #endif 185 : #ifdef AMIGOCLOUD_ENABLED 186 2058 : RegisterOGRAmigoCloud(); 187 : #endif 188 : #ifdef SXF_ENABLED 189 2058 : RegisterOGRSXF(); 190 : #endif 191 : #ifdef SELAFIN_ENABLED 192 2058 : RegisterOGRSelafin(); 193 : #endif 194 : #ifdef JML_ENABLED 195 2058 : RegisterOGRJML(); 196 : #endif 197 : #ifdef PLSCENES_ENABLED 198 2058 : RegisterOGRPLSCENES(); 199 : #endif 200 : #ifdef CSW_ENABLED 201 2058 : RegisterOGRCSW(); 202 : #endif 203 : #ifdef MONGODBV3_ENABLED 204 : RegisterOGRMongoDBv3(); 205 : #endif 206 : #ifdef VDV_ENABLED 207 2058 : RegisterOGRVDV(); 208 : #endif 209 : #ifdef GMLAS_ENABLED 210 2058 : RegisterOGRGMLAS(); 211 : #endif 212 : #ifdef MVT_ENABLED 213 2058 : RegisterOGRMVT(); 214 : #endif 215 : #ifdef NGW_ENABLED 216 2058 : RegisterOGRNGW(); 217 : #endif // NGW_ENABLED 218 : #ifdef MAPML_ENABLED 219 2058 : RegisterOGRMapML(); 220 : #endif 221 : #ifdef HANA_ENABLED 222 : RegisterOGRHANA(); 223 : #endif 224 : #ifdef PARQUET_ENABLED 225 : RegisterOGRParquet(); 226 : #endif 227 : #ifdef ARROW_ENABLED 228 : RegisterOGRArrow(); 229 : #endif 230 : #ifdef GTFS_ENABLED 231 2058 : RegisterOGRGTFS(); 232 : #endif 233 : #ifdef PMTILES_ENABLED 234 2058 : RegisterOGRPMTiles(); 235 : #endif 236 : #ifdef JSONFG_ENABLED 237 2058 : RegisterOGRJSONFG(); 238 : #endif 239 : #ifdef MIRAMON_ENABLED 240 2058 : RegisterOGRMiraMon(); 241 : #endif 242 : #ifdef XODR_ENABLED 243 : RegisterOGRXODR(); 244 : #endif 245 : #ifdef ADBC_ENABLED 246 : RegisterOGRADBC(); 247 : #endif 248 : 249 : // NOTE: you need to generally insert your own driver before that line. 250 : 251 : // NOTE: frmts/drivers.ini in the same directory should be kept in same 252 : // order as this file 253 : 254 : /* Put AVCBIN at end since they need poOpenInfo->GetSiblingFiles() */ 255 : #ifdef AVC_ENABLED 256 2058 : RegisterOGRAVCBin(); 257 2058 : RegisterOGRAVCE00(); 258 : #endif 259 : 260 : // Last but not the least 261 : #ifdef AIVECTOR_ENABLED 262 2058 : RegisterOGRAIVector(); 263 : #endif 264 : 265 2058 : } /* OGRRegisterAll */