-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
/
gdalallregister.cpp
835 lines (698 loc) · 19 KB
/
gdalallregister.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
/******************************************************************************
*
* Project: GDAL Core
* Purpose: Implementation of GDALAllRegister(), primary format registration.
* Author: Frank Warmerdam, warmerdam@pobox.com
*
******************************************************************************
* Copyright (c) 1998, Frank Warmerdam
* Copyright (c) 2007-2014, Even Rouault <even dot rouault at spatialys.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
****************************************************************************/
#include "gdal_priv.h"
#include "gdal_frmts.h"
#include "ogrsf_frmts.h"
#ifdef GNM_ENABLED
#include "gnm_frmts.h"
#endif
#if defined(HAVE_EXTERNAL_DEFERRED_PLUGINS)
// The above define and the below functions are set and generated by
// frmts/CMakeLists.txt when a CMake ADD_EXTERNAL_DEFERRED_PLUGIN_XXXX
// variable is set.
extern "C" void DeclareExternalDeferredPlugins(void);
#endif
extern "C" void CPL_DLL GDALRegister_raw_no_sidecar();
extern "C" void CPL_DLL GDALRegister_raw_with_sidecar();
/************************************************************************/
/* GDALRegisterPlugin() */
/* */
/* Register a plugin by name, returning an error if not found */
/************************************************************************/
/**
* \brief Register a plugin by name, returning an error if not found
*
* This function will call GDALDriverManager::LoadPlugin() to register a
* specific plugin by name.
*
* This method is intended to be called instead of GDALAllRegister() or
* GDALRegisterPlugins() when fine tuning which drivers are needed at runtime.
*
* @see GDALDriverManager::LoadPlugin()
* @see GDALDriverManager::AutoLoadDrivers()
* @since GDAL 3.8
*/
CPLErr GDALRegisterPlugin(const char *name)
{
auto poDriverManager = GetGDALDriverManager();
// LoadPlugin is a no-op if compiled with GDAL_NO_AUTOLOAD defined.
return poDriverManager->LoadPlugin(name);
}
/************************************************************************/
/* GDALRegisterPlugins() */
/* */
/* Register drivers and support code available as a plugin. */
/************************************************************************/
/**
* \brief Register drivers and support code available as a plugin.
*
* This function will call GDALDriverManager::AutoLoadDrivers() to
* register all drivers or supporting code (for example VRT pixelfunctions
* or VSI adapters) that have not been compiled into the GDAL core but instead
* are made available through GDAL's plugin mechanism.
*
* This method is intended to be called instead of GDALAllRegister() when
* fine tuning which drivers are needed at runtime.
*
* @see GDALDriverManager::AutoLoadDrivers()
* @since GDAL 3.8
*/
void CPL_DLL GDALRegisterPlugins(void)
{
auto poDriverManager = GetGDALDriverManager();
// AutoLoadDrivers is a no-op if compiled with GDAL_NO_AUTOLOAD defined.
poDriverManager->AutoLoadDrivers();
poDriverManager->AutoLoadPythonDrivers();
/* -------------------------------------------------------------------- */
/* Deregister any drivers explicitly marked as suppressed by the */
/* GDAL_SKIP environment variable. */
/* -------------------------------------------------------------------- */
poDriverManager->AutoSkipDrivers();
poDriverManager->ReorderDrivers();
}
/************************************************************************/
/* GDALAllRegister() */
/* */
/* Register all identifiably supported formats. */
/************************************************************************/
/**
* Register all known configured GDAL drivers.
*
* This function will drive any of the following that are configured into
* GDAL. See <a href="http://gdal.org/formats_list.html">raster list</a> and
* <a href="http://gdal.org/ogr_formats.html">vector full list</a>
*
* This function should generally be called once at the beginning of the
* application.
*/
void CPL_STDCALL GDALAllRegister()
{
auto poDriverManager = GetGDALDriverManager();
#if defined(HAVE_EXTERNAL_DEFERRED_PLUGINS)
DeclareExternalDeferredPlugins();
#endif
#if defined(DEFERRED_ARROW_DRIVER)
DeclareDeferredOGRArrowPlugin();
#endif
#if defined(DEFERRED_BASISU_KTX2_DRIVER)
DeclareDeferredBASISU_KTX2Plugin();
#endif
#if defined(DEFERRED_CAD_DRIVER)
DeclareDeferredOGRCADPlugin();
#endif
#if defined(DEFERRED_CARTO_DRIVER)
DeclareDeferredOGRCartoPlugin();
#endif
#if defined(DEFERRED_DDS_DRIVER)
DeclareDeferredDDSPlugin();
#endif
#if defined(DEFERRED_DWG_DRIVER)
DeclareDeferredOGRDWGPlugin();
DeclareDeferredOGRDGNV8Plugin();
#endif
#if defined(DEFERRED_ELASTIC_DRIVER)
DeclareDeferredOGRElasticPlugin();
#endif
#if defined(DEFERRED_EXR_DRIVER)
DeclareDeferredEXRPlugin();
#endif
#if defined(DEFERRED_ECW_DRIVER)
DeclareDeferredECWPlugin();
#endif
#if defined(DEFERRED_FILEGDB_DRIVER)
DeclareDeferredOGRFileGDBPlugin();
#endif
#if defined(DEFERRED_FITS_DRIVER)
DeclareDeferredFITSPlugin();
#endif
#if defined(DEFERRED_GEOR_DRIVER)
DeclareDeferredGEORPlugin();
#endif
#if defined(DEFERRED_GIF_DRIVER)
DeclareDeferredGIFPlugin();
#endif
#if defined(DEFERRED_GMLAS_DRIVER)
DeclareDeferredOGRGMLASPlugin();
#endif
#if defined(DEFERRED_GRIB_DRIVER)
DeclareDeferredGRIBPlugin();
#endif
#if defined(DEFERRED_GTA_DRIVER)
DeclareDeferredGTAPlugin();
#endif
#if defined(DEFERRED_HANA_DRIVER)
DeclareDeferredOGRHANAPlugin();
#endif
#if defined(DEFERRED_HEIF_DRIVER)
DeclareDeferredHEIFPlugin();
#endif
#if defined(DEFERRED_HDF4_DRIVER)
DeclareDeferredHDF4Plugin();
#endif
#if defined(DEFERRED_HDF5_DRIVER)
DeclareDeferredHDF5Plugin();
#endif
#if defined(DEFERRED_IDB_DRIVER)
DeclareDeferredOGRIDBPlugin();
#endif
#if defined(DEFERRED_JP2KAK_DRIVER)
DeclareDeferredJP2KAKPlugin();
#endif
#if defined(DEFERRED_JP2LURA_DRIVER)
DeclareDeferredJP2LuraPlugin();
#endif
#if defined(DEFERRED_JP2OPENJPEG_DRIVER)
DeclareDeferredOPENJPEGPlugin();
#endif
#if defined(DEFERRED_JPEG_DRIVER)
DeclareDeferredJPEGPlugin();
#endif
#if defined(DEFERRED_JPEGXL_DRIVER)
DeclareDeferredJPEGXLPlugin();
#endif
#if defined(DEFERRED_JPIPKAK_DRIVER)
DeclareDeferredJPIPKAKPlugin();
#endif
#if defined(DEFERRED_KEA_DRIVER)
DeclareDeferredKEAPlugin();
#endif
#if defined(DEFERRED_LIBKML_DRIVER)
DeclareDeferredOGRLIBKMLPlugin();
#endif
#if defined(DEFERRED_MONGODBV3_DRIVER)
DeclareDeferredOGRMongoDBv3Plugin();
#endif
#if defined(DEFERRED_MRF_DRIVER)
DeclareDeferredMRFPlugin();
#endif
#if defined(DEFERRED_MRSID_DRIVER)
DeclareDeferredMrSIDPlugin();
#endif
#if defined(DEFERRED_MSG_DRIVER)
DeclareDeferredMSGPlugin();
#endif
#if defined(DEFERRED_MSSQLSPATIAL_DRIVER)
DeclareDeferredOGRMSSQLSpatialPlugin();
#endif
#if defined(DEFERRED_MYSQL_DRIVER)
DeclareDeferredOGRMySQLPlugin();
#endif
#if defined(DEFERRED_NETCDF_DRIVER)
DeclareDeferredNetCDFPlugin();
#endif
#if defined(DEFERRED_NITF_DRIVER)
DeclareDeferredNITFPlugin();
#endif
#if defined(DEFERRED_OCI_DRIVER)
DeclareDeferredOGROCIPlugin();
#endif
#if defined(DEFERRED_ODBC_DRIVER)
DeclareDeferredOGRODBCPlugin();
#endif
#if defined(DEFERRED_OGDI_DRIVER)
DeclareDeferredOGROGDIPlugin();
#endif
#if defined(DEFERRED_OPENFILEGDB_DRIVER)
DeclareDeferredOGROpenFileGDBPlugin();
#endif
#if defined(DEFERRED_PARQUET_DRIVER)
DeclareDeferredOGRParquetPlugin();
#endif
#if defined(DEFERRED_PCIDSK_DRIVER)
DeclareDeferredPCIDSKPlugin();
#endif
#if defined(DEFERRED_PCRASTER_DRIVER)
DeclareDeferredPCRasterPlugin();
#endif
#if defined(DEFERRED_POSTGISRASTER_DRIVER)
DeclareDeferredPostGISRasterPlugin();
#endif
#if defined(DEFERRED_PLSCENES_DRIVER)
DeclareDeferredOGRPLSCENESPlugin();
#endif
#if defined(DEFERRED_PDF_DRIVER)
DeclareDeferredPDFPlugin();
#endif
#if defined(DEFERRED_PDS_DRIVER)
DeclareDeferredPDSPlugin();
#endif
#if defined(DEFERRED_PG_DRIVER)
DeclareDeferredOGRPGPlugin();
#endif
#if defined(DEFERRED_PNG_DRIVER)
DeclareDeferredPNGPlugin();
#endif
#if defined(DEFERRED_RASTERLITE_DRIVER)
DeclareDeferredRasterlitePlugin();
#endif
#if defined(DEFERRED_SOSI_DRIVER)
DeclareDeferredOGRSOSIPlugin();
#endif
#if defined(DEFERRED_TILEDB_DRIVER)
DeclareDeferredTileDBPlugin();
#endif
#if defined(DEFERRED_VFK_DRIVER)
DeclareDeferredOGRVFKPlugin();
#endif
#if defined(DEFERRED_WCS_DRIVER)
DeclareDeferredWCSPlugin();
#endif
#if defined(DEFERRED_WEBP_DRIVER)
DeclareDeferredWEBPPlugin();
#endif
#if defined(DEFERRED_WMS_DRIVER)
DeclareDeferredWMSPlugin();
#endif
#if defined(DEFERRED_WMTS_DRIVER)
DeclareDeferredWMTSPlugin();
#endif
#if defined(DEFERRED_XLS_DRIVER)
DeclareDeferredOGRXLSPlugin();
#endif
#if defined(DEFERRED_ZARR_DRIVER)
DeclareDeferredZarrPlugin();
#endif
// AutoLoadDrivers is a no-op if compiled with GDAL_NO_AUTOLOAD defined.
poDriverManager->AutoLoadDrivers();
// NOTE: frmts/drivers.ini in the same directory should be kept in same
// order as this file
#ifdef FRMT_vrt
GDALRegister_VRT();
GDALRegister_Derived();
#endif
#ifdef FRMT_gtiff
GDALRegister_GTiff();
GDALRegister_COG();
#endif
#ifdef FRMT_nitf
GDALRegister_NITF();
GDALRegister_RPFTOC();
GDALRegister_ECRGTOC();
#endif
#ifdef FRMT_hfa
GDALRegister_HFA();
#endif
#ifdef FRMT_ceos2
GDALRegister_SAR_CEOS();
#endif
#ifdef FRMT_ceos
GDALRegister_CEOS();
#endif
#ifdef FRMT_jaxapalsar
GDALRegister_PALSARJaxa();
#endif
#ifdef FRMT_gff
GDALRegister_GFF();
#endif
#ifdef FRMT_elas
GDALRegister_ELAS();
#endif
#ifdef FRMT_esric
GDALRegister_ESRIC();
#endif
#ifdef FRMT_aigrid
// GDALRegister_AIGrid2();
GDALRegister_AIGrid();
#endif
#ifdef FRMT_aaigrid
GDALRegister_AAIGrid();
GDALRegister_GRASSASCIIGrid();
GDALRegister_ISG();
#endif
#ifdef FRMT_sdts
GDALRegister_SDTS();
#endif
#ifdef FRMT_dted
GDALRegister_DTED();
#endif
#ifdef FRMT_png
GDALRegister_PNG();
#endif
#ifdef FRMT_dds
GDALRegister_DDS();
#endif
#ifdef FRMT_gta
GDALRegister_GTA();
#endif
#ifdef FRMT_jpeg
GDALRegister_JPEG();
#endif
#ifdef FRMT_mem
GDALRegister_MEM();
#endif
#ifdef FRMT_jdem
GDALRegister_JDEM();
#endif
#ifdef FRMT_gif
GDALRegister_GIF();
GDALRegister_BIGGIF();
#endif
#ifdef FRMT_envisat
GDALRegister_Envisat();
#endif
#ifdef FRMT_fits
GDALRegister_FITS();
#endif
#ifdef FRMT_bsb
GDALRegister_BSB();
#endif
#ifdef FRMT_xpm
GDALRegister_XPM();
#endif
#ifdef FRMT_bmp
GDALRegister_BMP();
#endif
#ifdef FRMT_dimap
GDALRegister_DIMAP();
#endif
#ifdef FRMT_airsar
GDALRegister_AirSAR();
#endif
#ifdef FRMT_rs2
GDALRegister_RS2();
#endif
#ifdef FRMT_safe
GDALRegister_SAFE();
#endif
#ifdef FRMT_pcidsk
GDALRegister_PCIDSK();
#endif
#ifdef FRMT_pcraster
GDALRegister_PCRaster();
#endif
#ifdef FRMT_ilwis
GDALRegister_ILWIS();
#endif
#ifdef FRMT_sgi
GDALRegister_SGI();
#endif
#ifdef FRMT_srtmhgt
GDALRegister_SRTMHGT();
#endif
#ifdef FRMT_leveller
GDALRegister_Leveller();
#endif
#ifdef FRMT_terragen
GDALRegister_Terragen();
#endif
#ifdef FRMT_netcdf
GDALRegister_netCDF();
#endif
#ifdef FRMT_hdf4
GDALRegister_HDF4();
GDALRegister_HDF4Image();
#endif
#ifdef FRMT_pds
GDALRegister_ISIS3();
GDALRegister_ISIS2();
GDALRegister_PDS();
GDALRegister_PDS4();
GDALRegister_VICAR();
#endif
#ifdef FRMT_til
GDALRegister_TIL();
#endif
#ifdef FRMT_ers
GDALRegister_ERS();
#endif
#ifdef FRMT_jp2kak
// JPEG2000 support using Kakadu toolkit
GDALRegister_JP2KAK();
#endif
#ifdef FRMT_jpipkak
// JPEG2000 support using Kakadu toolkit
GDALRegister_JPIPKAK();
#endif
#ifdef FRMT_jp2lura
// JPEG2000 support using Lurawave library
GDALRegister_JP2Lura();
#endif
#ifdef FRMT_ecw
GDALRegister_ECW();
GDALRegister_JP2ECW();
#endif
#ifdef FRMT_openjpeg
// JPEG2000 support using OpenJPEG library
GDALRegister_JP2OpenJPEG();
#endif
#ifdef FRMT_l1b
GDALRegister_L1B();
#endif
#ifdef FRMT_fit
GDALRegister_FIT();
#endif
#ifdef FRMT_grib
GDALRegister_GRIB();
#endif
#ifdef FRMT_mrsid
GDALRegister_MrSID();
#endif
#ifdef FRMT_rmf
GDALRegister_RMF();
#endif
#ifdef FRMT_wcs
GDALRegister_WCS();
#endif
#ifdef FRMT_wms
GDALRegister_WMS();
#endif
#ifdef FRMT_msgn
GDALRegister_MSGN();
#endif
#ifdef FRMT_msg
GDALRegister_MSG();
#endif
#ifdef FRMT_idrisi
GDALRegister_IDRISI();
#endif
#ifdef FRMT_gsg
GDALRegister_GSAG();
GDALRegister_GSBG();
GDALRegister_GS7BG();
#endif
#ifdef FRMT_cosar
GDALRegister_COSAR();
#endif
#ifdef FRMT_tsx
GDALRegister_TSX();
#endif
#ifdef FRMT_coasp
GDALRegister_COASP();
#endif
#ifdef FRMT_r
GDALRegister_R();
#endif
#ifdef FRMT_map
GDALRegister_MAP();
#endif
#ifdef FRMT_kmlsuperoverlay
GDALRegister_KMLSUPEROVERLAY();
#endif
#ifdef FRMT_webp
GDALRegister_WEBP();
#endif
#ifdef FRMT_pdf
GDALRegister_PDF();
#endif
#ifdef FRMT_rasterlite
GDALRegister_Rasterlite();
#endif
#ifdef FRMT_mbtiles
GDALRegister_MBTiles();
#endif
#ifdef FRMT_plmosaic
GDALRegister_PLMOSAIC();
#endif
#ifdef FRMT_cals
GDALRegister_CALS();
#endif
#ifdef FRMT_wmts
GDALRegister_WMTS();
#endif
#ifdef FRMT_sentinel2
GDALRegister_SENTINEL2();
#endif
#ifdef FRMT_mrf
GDALRegister_mrf();
#endif
#ifdef FRMT_tiledb
GDALRegister_TileDB();
#endif
#ifdef FRMT_rdb
GDALRegister_RDB();
#endif
/* -------------------------------------------------------------------- */
/* Put raw formats at the end of the list. These drivers support */
/* various ASCII-header labeled formats, so the driver could be */
/* confused if you have files in some of above formats and such */
/* ASCII-header in the same directory. */
/* -------------------------------------------------------------------- */
#ifdef FRMT_raw
GDALRegister_raw_no_sidecar();
#endif
/* -------------------------------------------------------------------- */
/* Our test for the following is weak or expensive so we try */
/* them last. */
/* -------------------------------------------------------------------- */
#ifdef FRMT_rik
GDALRegister_RIK();
#endif
#ifdef FRMT_usgsdem
GDALRegister_USGSDEM();
#endif
#ifdef FRMT_gxf
GDALRegister_GXF();
#endif
/* Register KEA before HDF5 */
#ifdef FRMT_kea
GDALRegister_KEA();
#endif
#ifdef FRMT_hdf5
GDALRegister_BAG();
GDALRegister_S102();
GDALRegister_HDF5();
GDALRegister_HDF5Image();
#endif
#ifdef FRMT_northwood
GDALRegister_NWT_GRD();
GDALRegister_NWT_GRC();
#endif
#ifdef FRMT_adrg
GDALRegister_ADRG();
GDALRegister_SRP();
#endif
#ifdef FRMT_blx
GDALRegister_BLX();
#endif
#ifdef FRMT_georaster
GDALRegister_GEOR();
#endif
#ifdef FRMT_postgisraster
GDALRegister_PostGISRaster();
#endif
#ifdef FRMT_saga
GDALRegister_SAGA();
#endif
#ifdef FRMT_xyz
GDALRegister_XYZ();
#endif
#ifdef FRMT_hf2
GDALRegister_HF2();
#endif
#ifdef FRMT_ozi
GDALRegister_OZI();
#endif
#ifdef FRMT_ctg
GDALRegister_CTG();
#endif
#ifdef FRMT_zmap
GDALRegister_ZMap();
#endif
#ifdef FRMT_ngsgeoid
GDALRegister_NGSGEOID();
#endif
#ifdef FRMT_iris
GDALRegister_IRIS();
#endif
#ifdef FRMT_prf
GDALRegister_PRF();
#endif
#ifdef FRMT_eeda
GDALRegister_EEDAI();
GDALRegister_EEDA();
#endif
#ifdef FRMT_daas
GDALRegister_DAAS();
#endif
#ifdef FRMT_null
GDALRegister_NULL();
#endif
#ifdef FRMT_sigdem
GDALRegister_SIGDEM();
#endif
#ifdef FRMT_exr
GDALRegister_EXR();
#endif
#ifdef FRMT_heif
GDALRegister_HEIF();
#endif
#ifdef FRMT_tga
GDALRegister_TGA();
#endif
#ifdef FRMT_ogcapi
GDALRegister_OGCAPI();
#endif
#ifdef FRMT_stacta
GDALRegister_STACTA();
#endif
#ifdef FRMT_stacit
GDALRegister_STACIT();
#endif
#ifdef FRMT_jpegxl
GDALRegister_JPEGXL();
#endif
#ifdef FRMT_basisu_ktx2
GDALRegister_BASISU();
GDALRegister_KTX2();
#endif
// NOTE: you need to generally insert your own driver before that line.
// NOTE: frmts/drivers.ini in the same directory should be kept in same
// order as this file
/* -------------------------------------------------------------------- */
/* GNM and OGR drivers */
/* -------------------------------------------------------------------- */
#ifdef GNM_ENABLED
GNMRegisterAllInternal();
#endif
OGRRegisterAllInternal();
/* -------------------------------------------------------------------- */
/* Put here drivers that absolutely need to look for side car */
/* files in their Identify()/Open() procedure. */
/* -------------------------------------------------------------------- */
#ifdef FRMT_raw
GDALRegister_raw_with_sidecar();
#endif
#ifdef FRMT_zarr
GDALRegister_Zarr();
#endif
/* -------------------------------------------------------------------- */
/* Register GDAL HTTP last, to let a chance to other drivers */
/* accepting URL to handle them before. */
/* -------------------------------------------------------------------- */
#ifdef FRMT_http
GDALRegister_HTTP();
#endif
poDriverManager->AutoLoadPythonDrivers();
/* -------------------------------------------------------------------- */
/* Deregister any drivers explicitly marked as suppressed by the */
/* GDAL_SKIP environment variable. */
/* -------------------------------------------------------------------- */
poDriverManager->AutoSkipDrivers();
poDriverManager->ReorderDrivers();
}