Main Page Class Hierarchy Compound List File List Compound Members File Members Related Pages

# gdalallregister.cpp

    00001 /******************************************************************************
    00002  * Copyright (c) 1998, Frank Warmerdam
    00003  *
    00004  * Permission is hereby granted, free of charge, to any person obtaining a
    00005  * copy of this software and associated documentation files (the "Software"),
    00006  * to deal in the Software without restriction, including without limitation
    00007  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
    00008  * and/or sell copies of the Software, and to permit persons to whom the
    00009  * Software is furnished to do so, subject to the following conditions:
    00010  *
    00011  * The above copyright notice and this permission notice shall be included
    00012  * in all copies or substantial portions of the Software.
    00013  *
    00014  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
    00015  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    00016  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
    00017  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    00018  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    00019  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
    00020  * DEALINGS IN THE SOFTWARE.
    00021  ******************************************************************************
    00022  *
    00023  * gdalallregister.cpp
    00024  *
    00025  * Main format registration function.
    00026  *
    00027  * $Log: gdalallregister_cpp-source.html,v $
    00027  * Revision 1.6  2001/01/22 22:22:23  warmerda
    00027  * *** empty log message ***
    00027  *
    00028  * Revision 1.28  2001/01/15 14:32:30  warmerda
    00029  * added envisat
    00030  *
    00031  * Revision 1.27  2001/01/10 04:41:09  warmerda
    00032  * added gif support
    00033  *
    00034  * Revision 1.26  2001/01/03 18:53:23  warmerda
    00035  * Added PNM
    00036  *
    00037  * Revision 1.25  2000/11/27 19:03:44  warmerda
    00038  * added JDEM format
    00039  *
    00040  * Revision 1.24  2000/11/16 14:48:53  warmerda
    00041  * moved GXF down in driver ordering
    00042  *
    00043  * Revision 1.23  2000/09/11 13:32:26  warmerda
    00044  * added grass
    00045  *
    00046  * Revision 1.22  2000/07/19 19:06:39  warmerda
    00047  * added mem
    00048  *
    00049  * Revision 1.21  2000/06/20 17:36:38  warmerda
    00050  * added eosat fast format support
    00051  *
    00052  * Revision 1.20  2000/04/28 20:59:03  warmerda
    00053  * added jpeg
    00054  *
    00055  * Revision 1.19  2000/04/27 20:02:17  warmerda
    00056  * added png
    00057  *
    00058  * Revision 1.18  2000/04/04 23:44:45  warmerda
    00059  * also call auto register function
    00060  *
    00061  * Revision 1.17  2000/03/31 13:35:32  warmerda
    00062  * added SAR_CEOS
    00063  *
    00064  * Revision 1.16  2000/03/07 21:34:50  warmerda
    00065  * added HKV
    00066  *
    00067  * Revision 1.15  2000/03/06 21:51:09  warmerda
    00068  * Added MFF
    00069  *
    00070  * Revision 1.14  2000/01/31 16:24:37  warmerda
    00071  * added aigrid2
    00072  *
    00073  * Revision 1.13  1999/12/29 20:42:45  warmerda
    00074  * Added DOQ1
    00075  *
    00076  * Revision 1.12  1999/10/21 13:24:52  warmerda
    00077  * Added documentation.
    00078  *
    00079  * Revision 1.11  1999/08/13 03:25:58  warmerda
    00080  * add paux
    00081  *
    00082  * Revision 1.10  1999/07/23 19:36:41  warmerda
    00083  * added raw/ehdr support
    00084  *
    00085  * Revision 1.9  1999/06/03 14:05:33  warmerda
    00086  * added SDTS support
    00087  *
    00088  * Revision 1.8  1999/05/17 01:51:43  warmerda
    00089  * Removed unused variable.
    00090  *
    00091  * Revision 1.7  1999/05/13 15:28:19  warmerda
    00092  * Added elas format.
    00093  *
    00094  * Revision 1.6  1999/05/05 17:32:53  warmerda
    00095  * added ceos
    00096  *
    00097  * Revision 1.5  1999/02/04 22:14:46  warmerda
    00098  * added aigrid format
    00099  *
    00100  * Revision 1.4  1999/01/27 18:33:45  warmerda
    00101  * Use FMRT_ macros to test if format avail
    00102  *
    00103  * Revision 1.3  1999/01/11 15:30:16  warmerda
    00104  * added OGDI
    00105  *
    00106  * Revision 1.2  1998/12/03 18:37:26  warmerda
    00107  * Drop GDB, add geotiff.
    00108  *
    00109  * Revision 1.1  1998/11/29 22:22:14  warmerda
    00110  * New
    00111  *
    00112  */
    00113
    00114 #include "gdal_priv.h"
    00115
    00116 CPL_C_START
    00117 void GDALRegister_GDB(void);
    00118 void GDALRegister_GTiff(void);
    00119 void GDALRegister_GXF(void);
    00120 void GDALRegister_OGDI(void);
    00121 void GDALRegister_HFA(void);
    00122 void GDALRegister_AIGrid(void);
    00123 void GDALRegister_AIGrid2(void);
    00124 void GDALRegister_CEOS(void);
    00125 void GDALRegister_SAR_CEOS(void);
    00126 void GDALRegister_SDTS(void);
    00127 void GDALRegister_ELAS(void);
    00128 void GDALRegister_EHdr(void);
    00129 void GDALRegister_PAux(void);
    00130 void GDALRegister_EFF(void);
    00131 void GDALRegister_DOQ1(void);
    00132 void GDALRegister_DTED(void);
    00133 void GDALRegister_MFF(void);
    00134 void GDALRegister_HKV(void);
    00135 void GDALRegister_PNG(void);
    00136 void GDALRegister_JPEG(void);
    00137 void GDALRegister_MEM(void);
    00138 void GDALRegister_JDEM(void);
    00139 void GDALRegister_GRASS(void);
    00140 void GDALRegister_PNM(void);
    00141 void GDALRegister_GIF(void);
    00142 void GDALRegister_Envisat(void);
    00143 CPL_C_END
    00144
    00145 #ifdef notdef
    00146 // we may have a use for this some day
    00147 static char *szConfiguredFormats = "GDAL_FORMATS";
    00148 #endif
    00149
    00150 /************************************************************************/
    00151 /*                          GDALAllRegister()                           */
    00152 /*                                                                      */
    00153 /*      Register all identifiably supported formats.                    */
    00154 /************************************************************************/
    00155
    00178 void GDALAllRegister()
    00179
    00180 {
    00181     GetGDALDriverManager()->AutoLoadDrivers();
    00182
    00183 #ifdef FRMT_gdb
    00184     GDALRegister_GDB();
    00185 #endif
    00186
    00187 #ifdef FRMT_gtiff
    00188     GDALRegister_GTiff();
    00189 #endif
    00190
    00191 #ifdef FRMT_hfa
    00192     GDALRegister_HFA();
    00193 #endif
    00194
    00195 #ifdef FRMT_ceos2
    00196     GDALRegister_SAR_CEOS();
    00197 #endif
    00198
    00199 #ifdef FRMT_ceos
    00200     GDALRegister_CEOS();
    00201 #endif
    00202
    00203 #ifdef FRMT_elas
    00204     GDALRegister_ELAS();
    00205 #endif
    00206
    00207 #ifdef FRMT_aigrid
    00208     GDALRegister_AIGrid2();
    00209     GDALRegister_AIGrid();
    00210 #endif
    00211
    00212 #ifdef FRMT_sdts
    00213     GDALRegister_SDTS();
    00214 #endif
    00215
    00216 #ifdef FRMT_ogdi
    00217     GDALRegister_OGDI();
    00218 #endif
    00219
    00220 #ifdef FRMT_dted
    00221     GDALRegister_DTED();
    00222 #endif
    00223
    00224 #ifdef FRMT_png
    00225     GDALRegister_PNG();
    00226 #endif
    00227
    00228 #ifdef FRMT_jpeg
    00229     GDALRegister_JPEG();
    00230 #endif
    00231
    00232 #ifdef FRMT_mem
    00233     GDALRegister_MEM();
    00234 #endif
    00235
    00236 #ifdef FRMT_jdem
    00237     GDALRegister_JDEM();
    00238 #endif
    00239
    00240 #ifdef FRMT_gif
    00241     GDALRegister_GIF();
    00242 #endif
    00243
    00244 #ifdef FRMT_envisat
    00245     GDALRegister_Envisat();
    00246 #endif
    00247
    00248 #ifdef FRMT_raw
    00249     GDALRegister_PNM();
    00250     GDALRegister_DOQ1();
    00251     GDALRegister_EHdr();
    00252     GDALRegister_PAux();
    00253     GDALRegister_MFF();
    00254     GDALRegister_HKV();
    00255     GDALRegister_EFF();
    00256 #endif
    00257
    00258 /* -------------------------------------------------------------------- */
    00259 /*      Our "test" to see if the file is GXF is weak, so we leave it    */
    00260 /*      after most other "safe" formats.                                */
    00261 /* -------------------------------------------------------------------- */
    00262
    00263 #ifdef FRMT_gxf
    00264     GDALRegister_GXF();
    00265 #endif
    00266
    00267 #ifdef FRMT_grass
    00268     GDALRegister_GRASS();
    00269 #endif
    00270 }