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.8 2001/07/05 13:24:08 warmerda 00027 * *** empty log message *** 00027 * 00028 * Revision 1.33 2001/05/15 13:24:42 warmerda 00029 * added fujibas 00030 * 00031 * Revision 1.32 2001/04/02 17:11:45 warmerda 00032 * added ecw support 00033 * 00034 * Revision 1.31 2001/03/12 15:17:32 warmerda 00035 * added aaigrid 00036 * 00037 * Revision 1.30 2001/03/06 03:53:44 sperkins 00038 * Added FITS format support. 00039 * 00040 * Revision 1.29 2001/02/06 16:34:30 warmerda 00041 * moved format registration entry points to gdal_frmts.h 00042 * 00043 * Revision 1.28 2001/01/15 14:32:30 warmerda 00044 * added envisat 00045 * 00046 * Revision 1.27 2001/01/10 04:41:09 warmerda 00047 * added gif support 00048 * 00049 * Revision 1.26 2001/01/03 18:53:23 warmerda 00050 * Added PNM 00051 * 00052 * Revision 1.25 2000/11/27 19:03:44 warmerda 00053 * added JDEM format 00054 * 00055 * Revision 1.24 2000/11/16 14:48:53 warmerda 00056 * moved GXF down in driver ordering 00057 * 00058 * Revision 1.23 2000/09/11 13:32:26 warmerda 00059 * added grass 00060 * 00061 * Revision 1.22 2000/07/19 19:06:39 warmerda 00062 * added mem 00063 * 00064 * Revision 1.21 2000/06/20 17:36:38 warmerda 00065 * added eosat fast format support 00066 * 00067 * Revision 1.20 2000/04/28 20:59:03 warmerda 00068 * added jpeg 00069 * 00070 * Revision 1.19 2000/04/27 20:02:17 warmerda 00071 * added png 00072 * 00073 * Revision 1.18 2000/04/04 23:44:45 warmerda 00074 * also call auto register function 00075 * 00076 * Revision 1.17 2000/03/31 13:35:32 warmerda 00077 * added SAR_CEOS 00078 * 00079 * Revision 1.16 2000/03/07 21:34:50 warmerda 00080 * added HKV 00081 * 00082 * Revision 1.15 2000/03/06 21:51:09 warmerda 00083 * Added MFF 00084 * 00085 * Revision 1.14 2000/01/31 16:24:37 warmerda 00086 * added aigrid2 00087 * 00088 * Revision 1.13 1999/12/29 20:42:45 warmerda 00089 * Added DOQ1 00090 * 00091 * Revision 1.12 1999/10/21 13:24:52 warmerda 00092 * Added documentation. 00093 * 00094 * Revision 1.11 1999/08/13 03:25:58 warmerda 00095 * add paux 00096 * 00097 * Revision 1.10 1999/07/23 19:36:41 warmerda 00098 * added raw/ehdr support 00099 * 00100 * Revision 1.9 1999/06/03 14:05:33 warmerda 00101 * added SDTS support 00102 * 00103 * Revision 1.8 1999/05/17 01:51:43 warmerda 00104 * Removed unused variable. 00105 * 00106 * Revision 1.7 1999/05/13 15:28:19 warmerda 00107 * Added elas format. 00108 * 00109 * Revision 1.6 1999/05/05 17:32:53 warmerda 00110 * added ceos 00111 * 00112 * Revision 1.5 1999/02/04 22:14:46 warmerda 00113 * added aigrid format 00114 * 00115 * Revision 1.4 1999/01/27 18:33:45 warmerda 00116 * Use FMRT_ macros to test if format avail 00117 * 00118 * Revision 1.3 1999/01/11 15:30:16 warmerda 00119 * added OGDI 00120 * 00121 * Revision 1.2 1998/12/03 18:37:26 warmerda 00122 * Drop GDB, add geotiff. 00123 * 00124 * Revision 1.1 1998/11/29 22:22:14 warmerda 00125 * New 00126 * 00127 */ 00128 00129 #include "gdal_priv.h" 00130 #include "gdal_frmts.h" 00131 00132 #ifdef notdef 00133 // we may have a use for this some day 00134 static char *szConfiguredFormats = "GDAL_FORMATS"; 00135 #endif 00136 00137 /************************************************************************/ 00138 /* GDALAllRegister() */ 00139 /* */ 00140 /* Register all identifiably supported formats. */ 00141 /************************************************************************/ 00142 00165 void GDALAllRegister() 00166 00167 { 00168 GetGDALDriverManager()->AutoLoadDrivers(); 00169 00170 #ifdef FRMT_gdb 00171 GDALRegister_GDB(); 00172 #endif 00173 00174 #ifdef FRMT_gtiff 00175 GDALRegister_GTiff(); 00176 #endif 00177 00178 #ifdef FRMT_hfa 00179 GDALRegister_HFA(); 00180 #endif 00181 00182 #ifdef FRMT_ceos2 00183 GDALRegister_SAR_CEOS(); 00184 #endif 00185 00186 #ifdef FRMT_ceos 00187 GDALRegister_CEOS(); 00188 #endif 00189 00190 #ifdef FRMT_elas 00191 GDALRegister_ELAS(); 00192 #endif 00193 00194 #ifdef FRMT_aigrid 00195 GDALRegister_AIGrid2(); 00196 GDALRegister_AIGrid(); 00197 #endif 00198 00199 #ifdef FRMT_aaigrid 00200 GDALRegister_AAIGrid(); 00201 #endif 00202 00203 #ifdef FRMT_sdts 00204 GDALRegister_SDTS(); 00205 #endif 00206 00207 #ifdef FRMT_ogdi 00208 GDALRegister_OGDI(); 00209 #endif 00210 00211 #ifdef FRMT_dted 00212 GDALRegister_DTED(); 00213 #endif 00214 00215 #ifdef FRMT_png 00216 GDALRegister_PNG(); 00217 #endif 00218 00219 #ifdef FRMT_jpeg 00220 GDALRegister_JPEG(); 00221 #endif 00222 00223 #ifdef FRMT_mem 00224 GDALRegister_MEM(); 00225 #endif 00226 00227 #ifdef FRMT_jdem 00228 GDALRegister_JDEM(); 00229 #endif 00230 00231 #ifdef FRMT_gif 00232 GDALRegister_GIF(); 00233 #endif 00234 00235 #ifdef FRMT_envisat 00236 GDALRegister_Envisat(); 00237 #endif 00238 00239 #ifdef FRMT_fits 00240 GDALRegister_FITS(); 00241 #endif 00242 00243 #ifdef FRMT_ecw 00244 GDALRegister_ECW(); 00245 #endif 00246 00247 #ifdef FRMT_raw 00248 GDALRegister_PNM(); 00249 GDALRegister_DOQ1(); 00250 GDALRegister_EHdr(); 00251 GDALRegister_PAux(); 00252 GDALRegister_MFF(); 00253 GDALRegister_HKV(); 00254 GDALRegister_EFF(); 00255 GDALRegister_FujiBAS(); 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 }