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