1 : /******************************************************************************
2 : * $Id: ogrregisterall.cpp 24669 2012-07-10 16:04:24Z rouault $
3 : *
4 : * Project: OpenGIS Simple Features Reference Implementation
5 : * Purpose: Function to register all known OGR drivers.
6 : * Author: Frank Warmerdam, warmerdam@pobox.com
7 : *
8 : ******************************************************************************
9 : * Copyright (c) 1999, Les Technologies SoftMap Inc.
10 : *
11 : * Permission is hereby granted, free of charge, to any person obtaining a
12 : * copy of this software and associated documentation files (the "Software"),
13 : * to deal in the Software without restriction, including without limitation
14 : * the rights to use, copy, modify, merge, publish, distribute, sublicense,
15 : * and/or sell copies of the Software, and to permit persons to whom the
16 : * Software is furnished to do so, subject to the following conditions:
17 : *
18 : * The above copyright notice and this permission notice shall be included
19 : * in all copies or substantial portions of the Software.
20 : *
21 : * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
22 : * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 : * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
24 : * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25 : * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26 : * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
27 : * DEALINGS IN THE SOFTWARE.
28 : ****************************************************************************/
29 :
30 : #include "ogrsf_frmts.h"
31 :
32 : CPL_CVSID("$Id: ogrregisterall.cpp 24669 2012-07-10 16:04:24Z rouault $");
33 :
34 : /************************************************************************/
35 : /* OGRRegisterAll() */
36 : /************************************************************************/
37 :
38 244 : void OGRRegisterAll()
39 : {
40 244 : OGRSFDriverRegistrar::GetRegistrar()->AutoLoadDrivers();
41 :
42 : #ifdef SHAPE_ENABLED
43 244 : RegisterOGRShape();
44 : #endif
45 : #ifdef TAB_ENABLED
46 244 : RegisterOGRTAB();
47 : #endif
48 : #ifdef NTF_ENABLED
49 244 : RegisterOGRNTF();
50 : #endif
51 : #ifdef SDTS_ENABLED
52 244 : RegisterOGRSDTS();
53 : #endif
54 : #ifdef TIGER_ENABLED
55 244 : RegisterOGRTiger();
56 : #endif
57 : #ifdef S57_ENABLED
58 244 : RegisterOGRS57();
59 : #endif
60 : #ifdef DGN_ENABLED
61 244 : RegisterOGRDGN();
62 : #endif
63 : #ifdef VRT_ENABLED
64 244 : RegisterOGRVRT();
65 : #endif
66 : #ifdef REC_ENABLED
67 244 : RegisterOGRREC();
68 : #endif
69 : #ifdef MEM_ENABLED
70 244 : RegisterOGRMEM();
71 : #endif
72 : #ifdef BNA_ENABLED
73 244 : RegisterOGRBNA();
74 : #endif
75 : #ifdef CSV_ENABLED
76 244 : RegisterOGRCSV();
77 : #endif
78 : #ifdef NAS_ENABLED
79 244 : RegisterOGRNAS();
80 : #endif
81 : #ifdef GML_ENABLED
82 244 : RegisterOGRGML();
83 : #endif
84 : #ifdef GPX_ENABLED
85 244 : RegisterOGRGPX();
86 : #endif
87 : #ifdef LIBKML_ENABLED
88 244 : RegisterOGRLIBKML();
89 : #endif
90 : #ifdef KML_ENABLED
91 244 : RegisterOGRKML();
92 : #endif
93 : #ifdef GEOJSON_ENABLED
94 244 : RegisterOGRGeoJSON();
95 : #endif
96 : #ifdef ILI_ENABLED
97 244 : RegisterOGRILI1();
98 244 : RegisterOGRILI2();
99 : #endif
100 : #ifdef GMT_ENABLED
101 244 : RegisterOGRGMT();
102 : #endif
103 : #ifdef SQLITE_ENABLED
104 244 : RegisterOGRSQLite();
105 : #endif
106 : #ifdef DODS_ENABLED
107 : RegisterOGRDODS();
108 : #endif
109 : #ifdef ODBC_ENABLED
110 244 : RegisterOGRODBC();
111 : #endif
112 :
113 : /* Register before PGeo and Geomedia drivers */
114 : /* that don't work well on Linux */
115 : #ifdef MDB_ENABLED
116 244 : RegisterOGRMDB();
117 : #endif
118 :
119 : #ifdef PGEO_ENABLED
120 244 : RegisterOGRPGeo();
121 : #endif
122 : #ifdef MSSQLSPATIAL_ENABLED
123 244 : RegisterOGRMSSQLSpatial();
124 : #endif
125 : #ifdef OGDI_ENABLED
126 244 : RegisterOGROGDI();
127 : #endif
128 : #ifdef PG_ENABLED
129 244 : RegisterOGRPG();
130 : #endif
131 : #ifdef MYSQL_ENABLED
132 244 : RegisterOGRMySQL();
133 : #endif
134 : #ifdef OCI_ENABLED
135 : RegisterOGROCI();
136 : #endif
137 : #ifdef INGRES_ENABLED
138 : RegisterOGRIngres();
139 : #endif
140 : #ifdef PCIDSK_ENABLED
141 244 : RegisterOGRPCIDSK();
142 : #endif
143 : #ifdef SDE_ENABLED
144 : RegisterOGRSDE();
145 : #endif
146 : #ifdef FGDB_ENABLED
147 244 : RegisterOGRFileGDB();
148 : #endif
149 : #ifdef XPLANE_ENABLED
150 244 : RegisterOGRXPlane();
151 : #endif
152 : #ifdef AVCBIN_ENABLED
153 244 : RegisterOGRAVCBin();
154 244 : RegisterOGRAVCE00();
155 : #endif
156 : #ifdef DWGDIRECT_ENABLED
157 : RegisterOGRDXFDWG();
158 : #endif
159 : #ifdef DXF_ENABLED
160 244 : RegisterOGRDXF();
161 : #endif
162 : #ifdef GRASS_ENABLED
163 : RegisterOGRGRASS();
164 : #endif
165 : #ifdef FME_ENABLED
166 : RegisterOGRFME();
167 : #endif
168 : #ifdef IDB_ENABLED
169 : RegisterOGRIDB();
170 : #endif
171 : #ifdef GEOCONCEPT_ENABLED
172 244 : RegisterOGRGeoconcept();
173 : #endif
174 : #ifdef GEORSS_ENABLED
175 244 : RegisterOGRGeoRSS();
176 : #endif
177 : #ifdef GTM_ENABLED
178 244 : RegisterOGRGTM();
179 : #endif
180 : #ifdef VFK_ENABLED
181 244 : RegisterOGRVFK();
182 : #endif
183 : #ifdef PGDUMP_ENABLED
184 244 : RegisterOGRPGDump();
185 : #endif
186 : #ifdef OSM_ENABLED
187 : /* Register before GPSBabel, that could recognize .osm file too */
188 244 : RegisterOGROSM();
189 : #endif
190 : #ifdef GPSBABEL_ENABLED
191 244 : RegisterOGRGPSBabel();
192 : #endif
193 : #ifdef SUA_ENABLED
194 244 : RegisterOGRSUA();
195 : #endif
196 : #ifdef OPENAIR_ENABLED
197 244 : RegisterOGROpenAir();
198 : #endif
199 : #ifdef PDS_ENABLED
200 244 : RegisterOGRPDS();
201 : #endif
202 : #ifdef WFS_ENABLED
203 244 : RegisterOGRWFS();
204 : #endif
205 : #ifdef SOSI_ENABLED
206 : RegisterOGRSOSI();
207 : #endif
208 : #ifdef HTF_ENABLED
209 244 : RegisterOGRHTF();
210 : #endif
211 : #ifdef AERONAVFAA_ENABLED
212 244 : RegisterOGRAeronavFAA();
213 : #endif
214 : #ifdef GEOMEDIA_ENABLED
215 244 : RegisterOGRGeomedia();
216 : #endif
217 : #ifdef EDIGEO_ENABLED
218 244 : RegisterOGREDIGEO();
219 : #endif
220 : #ifdef GFT_ENABLED
221 244 : RegisterOGRGFT();
222 : #endif
223 : #ifdef SVG_ENABLED
224 244 : RegisterOGRSVG();
225 : #endif
226 : #ifdef COUCHDB_ENABLED
227 244 : RegisterOGRCouchDB();
228 : #endif
229 : #ifdef IDRISI_ENABLED
230 244 : RegisterOGRIdrisi();
231 : #endif
232 : #ifdef ARCGEN_ENABLED
233 244 : RegisterOGRARCGEN();
234 : #endif
235 : #ifdef SEGUKOOA_ENABLED
236 244 : RegisterOGRSEGUKOOA();
237 : #endif
238 : #ifdef SEGY_ENABLED
239 244 : RegisterOGRSEGY();
240 : #endif
241 : #ifdef FREEXL_ENABLED
242 244 : RegisterOGRXLS();
243 : #endif
244 : #ifdef ODS_ENABLED
245 244 : RegisterOGRODS();
246 : #endif
247 : #ifdef XLSX_ENABLED
248 244 : RegisterOGRXLSX();
249 : #endif
250 : #ifdef ELASTIC_ENABLED
251 244 : RegisterOGRElastic();
252 : #endif
253 : #ifdef PDF_ENABLED
254 244 : RegisterOGRPDF();
255 : #endif
256 244 : } /* OGRRegisterAll */
|