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