TerraLib 4.1
E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/functions/TeDriverMIDMIF.h
Go to the documentation of this file.
00001 /************************************************************************************
00002 TerraLib - a library for developing GIS applications.
00003 Copyright � 2001-2007 INPE and Tecgraf/PUC-Rio.
00004 
00005 This code is part of the TerraLib library.
00006 This library is free software; you can redistribute it and/or
00007 modify it under the terms of the GNU Lesser General Public
00008 License as published by the Free Software Foundation; either
00009 version 2.1 of the License, or (at your option) any later version.
00010 
00011 You should have received a copy of the GNU Lesser General Public
00012 License along with this library.
00013 
00014 The authors reassure the license terms regarding the warranties.
00015 They specifically disclaim any warranties, including, but not limited to,
00016 the implied warranties of merchantability and fitness for a particular purpose.
00017 The library provided hereunder is on an "as is" basis, and the authors have no
00018 obligation to provide maintenance, support, updates, enhancements, or modifications.
00019 In no event shall INPE and Tecgraf / PUC-Rio be held liable to any party for direct,
00020 indirect, special, incidental, or consequential damages arising out of the use
00021 of this library and its documentation.
00022 *************************************************************************************/
00026 #ifndef __TERRALIB_INTERNAL_TeMIDMIFDriver_H
00027 #define __TERRALIB_INTERNAL_TeMIDMIFDriver_H
00028 
00029 #include "../kernel/TeTable.h"
00030 #include "../kernel/TeBox.h"
00031 #include "../kernel/TeDataTypes.h"
00032 #include "../kernel/TeGeometry.h" 
00033 
00034 #include "TeFunctionsDefines.h"
00035 
00036 #include <string>
00037 using namespace std;
00038 
00039 class TeLayer;
00040 class TeAsciiFile;
00041 class TeProjection;
00042 class TeDatabase;
00043 class TePolygonSet;
00044 class TeQuerier;
00045 class TeTheme;
00046 
00058 TLFUNCTIONS_DLL TeLayer* TeImportMIF(const string& mifFileName, TeDatabase* db, const string& layerName="");
00059 
00068 TLFUNCTIONS_DLL bool TeImportMIF(TeLayer* layer, const string& mifFileName, string attrTableName="",  
00069                                              string objectIdAttr="", int unsigned chunkSize = 60);
00070 
00075 TLFUNCTIONS_DLL void TeReadMIFAttributeList(const string& mifFileName, TeAttributeList& attList);
00076 
00081 TLFUNCTIONS_DLL TeProjection* TeReadMIFProjection(const string& mifFileName);
00082 
00089 TLFUNCTIONS_DLL bool TeExportQuerierToMIF(TeQuerier* querier, const std::string& base, TeProjection* proj);
00090 
00096 TLFUNCTIONS_DLL bool TeExportLayerToMIF(TeLayer* layer, const string& baseName="");
00097 
00104 TLFUNCTIONS_DLL bool TeExportThemeToMIF(TeTheme* theme, TeSelectedObjects selOb = TeAll, const string& baseName="");
00105 
00112 TLFUNCTIONS_DLL bool TeExportMIF(TeLayer* layer, const string& mifFileName, const string& tableName, const string& restriction = "");
00113  // End of subgroup MID/MIF format
00115 
00120 #endif
00121 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines