openModeller  Version 1.4.0
om_layer_utils.hh
Go to the documentation of this file.
00001 
00027 #ifndef OM_LAYER_UTILS_HH
00028 #define OM_LAYER_UTILS_HH
00029 
00030 #include <sstream>
00031 
00032 using namespace std;
00033 
00034 // Recursively reads directory content to find GDAL compatible rasters
00035 bool readDirectory( const char* dir, const char* label, ostream &xml, int depth, int * seq );
00036 
00037 // Get a layer label from the metadata file
00038 string getLayerLabel( const string path, const string name, bool isDir );
00039 
00040 // Indicates if a file is compatible with GDAL
00041 bool isValidGdalFile( const char* fileName );
00042 
00043 // Indicates if a file has a valid GDAL projection
00044 bool hasValidGdalProjection( const char* fileName );
00045 
00046 #endif