Coverage Report

Created: 2025-06-13 06:18

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