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