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