Coverage Report

Created: 2026-07-25 06:50

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/gdal/ogr/ogrsf_frmts/generic/ogrregisterall.cpp
Line
Count
Source
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
void OGRRegisterAll()
26
0
{
27
0
    GDALAllRegister();
28
0
}
29
30
void OGRRegisterAllInternal()
31
0
{
32
    // NOTE: frmts/drivers.ini in the same directory should be kept in same
33
    // order as this file
34
35
0
#ifdef SHAPE_ENABLED
36
0
    RegisterOGRShape();
37
0
#endif
38
#ifdef MITAB_ENABLED
39
    RegisterOGRTAB();
40
#endif
41
#ifdef NTF_ENABLED
42
    RegisterOGRNTF();
43
#endif
44
#ifdef LVBAG_ENABLED
45
    RegisterOGRLVBAG();
46
#endif
47
#ifdef S57_ENABLED
48
    RegisterOGRS57();
49
#endif
50
#ifdef S101_ENABLED
51
    RegisterOGRS101();
52
#endif
53
#ifdef DGN_ENABLED
54
    RegisterOGRDGN();
55
#endif
56
#ifdef VRT_ENABLED
57
    RegisterOGRVRT();
58
#endif
59
#ifdef CSV_ENABLED
60
    RegisterOGRCSV();
61
#endif
62
#ifdef NAS_ENABLED
63
    RegisterOGRNAS();
64
#endif
65
#ifdef GML_ENABLED
66
    RegisterOGRGML();
67
#endif
68
#ifdef GPX_ENABLED
69
    RegisterOGRGPX();
70
#endif
71
#ifdef LIBKML_ENABLED
72
    RegisterOGRLIBKML();
73
#endif
74
#ifdef KML_ENABLED
75
    RegisterOGRKML();
76
#endif
77
0
#ifdef GEOJSON_ENABLED
78
0
    RegisterOGRGeoJSON();
79
0
    RegisterOGRGeoJSONSeq();
80
0
    RegisterOGRESRIJSON();
81
0
    RegisterOGRTopoJSON();
82
0
#endif
83
#ifdef ILI_ENABLED
84
    RegisterOGRILI1();
85
    RegisterOGRILI2();
86
#endif
87
#ifdef GMT_ENABLED
88
    RegisterOGRGMT();
89
#endif
90
#ifdef GPKG_ENABLED
91
    RegisterOGRGeoPackage();
92
#endif
93
#ifdef SQLITE_ENABLED
94
    RegisterOGRSQLite();
95
#endif
96
#ifdef ODBC_ENABLED
97
    RegisterOGRODBC();
98
#endif
99
#ifdef WASP_ENABLED
100
    RegisterOGRWAsP();
101
#endif
102
#ifdef PGEO_ENABLED
103
    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
    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
    RegisterOGRDXF();
132
#endif
133
#ifdef CAD_ENABLED
134
    RegisterOGRCAD();
135
#endif
136
#ifdef FLATGEOBUF_ENABLED
137
    RegisterOGRFlatGeobuf();
138
#endif
139
#ifdef IDB_ENABLED
140
    RegisterOGRIDB();
141
#endif
142
#ifdef GEORSS_ENABLED
143
    RegisterOGRGeoRSS();
144
#endif
145
#ifdef VFK_ENABLED
146
    RegisterOGRVFK();
147
#endif
148
#ifdef PGDUMP_ENABLED
149
    RegisterOGRPGDump();
150
#endif
151
#ifdef OSM_ENABLED
152
    /* Register before GPSBabel, that could recognize .osm file too */
153
    RegisterOGROSM();
154
#endif
155
#ifdef GPSBABEL_ENABLED
156
    RegisterOGRGPSBabel();
157
#endif
158
#ifdef PDS_ENABLED
159
    RegisterOGRPDS();
160
#endif
161
#ifdef WFS_ENABLED
162
    RegisterOGRWFS();
163
#endif
164
#ifdef OAPIF_ENABLED
165
    RegisterOGROAPIF();
166
#endif
167
#ifdef SOSI_ENABLED
168
    RegisterOGRSOSI();
169
#endif
170
#ifdef EDIGEO_ENABLED
171
    RegisterOGREDIGEO();
172
#endif
173
#ifdef IDRISI_ENABLED
174
    RegisterOGRIdrisi();
175
#endif
176
#ifdef XLS_ENABLED
177
    RegisterOGRXLS();
178
#endif
179
#ifdef ODS_ENABLED
180
    RegisterOGRODS();
181
#endif
182
#ifdef XLSX_ENABLED
183
    RegisterOGRXLSX();
184
#endif
185
#ifdef ELASTIC_ENABLED
186
    RegisterOGRElastic();
187
#endif
188
#ifdef CARTO_ENABLED
189
    RegisterOGRCarto();
190
#endif
191
#ifdef AMIGOCLOUD_ENABLED
192
    RegisterOGRAmigoCloud();
193
#endif
194
#ifdef SXF_ENABLED
195
    RegisterOGRSXF();
196
#endif
197
#ifdef SELAFIN_ENABLED
198
    RegisterOGRSelafin();
199
#endif
200
#ifdef JML_ENABLED
201
    RegisterOGRJML();
202
#endif
203
#ifdef PLSCENES_ENABLED
204
    RegisterOGRPLSCENES();
205
#endif
206
#ifdef CSW_ENABLED
207
    RegisterOGRCSW();
208
#endif
209
#ifdef MONGODBV3_ENABLED
210
    RegisterOGRMongoDBv3();
211
#endif
212
#ifdef VDV_ENABLED
213
    RegisterOGRVDV();
214
#endif
215
#ifdef GMLAS_ENABLED
216
    RegisterOGRGMLAS();
217
#endif
218
#ifdef MVT_ENABLED
219
    RegisterOGRMVT();
220
#endif
221
#ifdef NGW_ENABLED
222
    RegisterOGRNGW();
223
#endif  // NGW_ENABLED
224
#ifdef MAPML_ENABLED
225
    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
    RegisterOGRGTFS();
238
#endif
239
#ifdef PMTILES_ENABLED
240
    RegisterOGRPMTiles();
241
#endif
242
#ifdef JSONFG_ENABLED
243
    RegisterOGRJSONFG();
244
#endif
245
#ifdef MIRAMON_ENABLED
246
    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
    RegisterOGRTiger();
263
#endif
264
#ifdef AVC_ENABLED
265
    RegisterOGRAVCBin();
266
    RegisterOGRAVCE00();
267
#endif
268
269
    // Last but not the least
270
#ifdef AIVECTOR_ENABLED
271
    RegisterOGRAIVector();
272
#endif
273
274
0
} /* OGRRegisterAll */