Coverage Report

Created: 2026-04-01 06:20

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 DGN_ENABLED
51
    RegisterOGRDGN();
52
#endif
53
#ifdef VRT_ENABLED
54
    RegisterOGRVRT();
55
#endif
56
#ifdef CSV_ENABLED
57
    RegisterOGRCSV();
58
#endif
59
#ifdef NAS_ENABLED
60
    RegisterOGRNAS();
61
#endif
62
#ifdef GML_ENABLED
63
    RegisterOGRGML();
64
#endif
65
#ifdef GPX_ENABLED
66
    RegisterOGRGPX();
67
#endif
68
#ifdef LIBKML_ENABLED
69
    RegisterOGRLIBKML();
70
#endif
71
#ifdef KML_ENABLED
72
    RegisterOGRKML();
73
#endif
74
0
#ifdef GEOJSON_ENABLED
75
0
    RegisterOGRGeoJSON();
76
0
    RegisterOGRGeoJSONSeq();
77
0
    RegisterOGRESRIJSON();
78
0
    RegisterOGRTopoJSON();
79
0
#endif
80
#ifdef ILI_ENABLED
81
    RegisterOGRILI1();
82
    RegisterOGRILI2();
83
#endif
84
#ifdef GMT_ENABLED
85
    RegisterOGRGMT();
86
#endif
87
#ifdef GPKG_ENABLED
88
    RegisterOGRGeoPackage();
89
#endif
90
#ifdef SQLITE_ENABLED
91
    RegisterOGRSQLite();
92
#endif
93
#ifdef ODBC_ENABLED
94
    RegisterOGRODBC();
95
#endif
96
#ifdef WASP_ENABLED
97
    RegisterOGRWAsP();
98
#endif
99
#ifdef PGEO_ENABLED
100
    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
    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
    RegisterOGRDXF();
129
#endif
130
#ifdef CAD_ENABLED
131
    RegisterOGRCAD();
132
#endif
133
#ifdef FLATGEOBUF_ENABLED
134
    RegisterOGRFlatGeobuf();
135
#endif
136
#ifdef IDB_ENABLED
137
    RegisterOGRIDB();
138
#endif
139
#ifdef GEORSS_ENABLED
140
    RegisterOGRGeoRSS();
141
#endif
142
#ifdef VFK_ENABLED
143
    RegisterOGRVFK();
144
#endif
145
#ifdef PGDUMP_ENABLED
146
    RegisterOGRPGDump();
147
#endif
148
#ifdef OSM_ENABLED
149
    /* Register before GPSBabel, that could recognize .osm file too */
150
    RegisterOGROSM();
151
#endif
152
#ifdef GPSBABEL_ENABLED
153
    RegisterOGRGPSBabel();
154
#endif
155
#ifdef PDS_ENABLED
156
    RegisterOGRPDS();
157
#endif
158
#ifdef WFS_ENABLED
159
    RegisterOGRWFS();
160
#endif
161
#ifdef OAPIF_ENABLED
162
    RegisterOGROAPIF();
163
#endif
164
#ifdef SOSI_ENABLED
165
    RegisterOGRSOSI();
166
#endif
167
#ifdef EDIGEO_ENABLED
168
    RegisterOGREDIGEO();
169
#endif
170
#ifdef IDRISI_ENABLED
171
    RegisterOGRIdrisi();
172
#endif
173
#ifdef XLS_ENABLED
174
    RegisterOGRXLS();
175
#endif
176
#ifdef ODS_ENABLED
177
    RegisterOGRODS();
178
#endif
179
#ifdef XLSX_ENABLED
180
    RegisterOGRXLSX();
181
#endif
182
#ifdef ELASTIC_ENABLED
183
    RegisterOGRElastic();
184
#endif
185
#ifdef CARTO_ENABLED
186
    RegisterOGRCarto();
187
#endif
188
#ifdef AMIGOCLOUD_ENABLED
189
    RegisterOGRAmigoCloud();
190
#endif
191
#ifdef SXF_ENABLED
192
    RegisterOGRSXF();
193
#endif
194
#ifdef SELAFIN_ENABLED
195
    RegisterOGRSelafin();
196
#endif
197
#ifdef JML_ENABLED
198
    RegisterOGRJML();
199
#endif
200
#ifdef PLSCENES_ENABLED
201
    RegisterOGRPLSCENES();
202
#endif
203
#ifdef CSW_ENABLED
204
    RegisterOGRCSW();
205
#endif
206
#ifdef MONGODBV3_ENABLED
207
    RegisterOGRMongoDBv3();
208
#endif
209
#ifdef VDV_ENABLED
210
    RegisterOGRVDV();
211
#endif
212
#ifdef GMLAS_ENABLED
213
    RegisterOGRGMLAS();
214
#endif
215
#ifdef MVT_ENABLED
216
    RegisterOGRMVT();
217
#endif
218
#ifdef NGW_ENABLED
219
    RegisterOGRNGW();
220
#endif  // NGW_ENABLED
221
#ifdef MAPML_ENABLED
222
    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
    RegisterOGRGTFS();
235
#endif
236
#ifdef PMTILES_ENABLED
237
    RegisterOGRPMTiles();
238
#endif
239
#ifdef JSONFG_ENABLED
240
    RegisterOGRJSONFG();
241
#endif
242
#ifdef MIRAMON_ENABLED
243
    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
    RegisterOGRTiger();
260
#endif
261
#ifdef AVC_ENABLED
262
    RegisterOGRAVCBin();
263
    RegisterOGRAVCE00();
264
#endif
265
266
    // Last but not the least
267
#ifdef AIVECTOR_ENABLED
268
    RegisterOGRAIVector();
269
#endif
270
271
0
} /* OGRRegisterAll */