| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/gdal/TeOGRDriver.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 *************************************************************************************/
    00023
    00029 #ifndef _TEOGRDRIVER_H
    00030 #define _TEOGRDRIVER_H
    00031
    00032 // Defines
    00033 #include "TeGDALDefines.h"
    00034 #include "ogr_core.h"
    00035
    00036 // TerraLib include files
    00037 #include "../../kernel/TeGeoDataDriver.h"
    00038 #include "../../kernel/TeBox.h"
    00039 #include "../../kernel/TeDataTypes.h"
    00040 #include "../../kernel/TeAttribute.h"
    00041 #include "../../kernel/TeTable.h"
    00042 #include "../../kernel/TeAttribute.h"
    00043
    00044 // STL include files
    00045 #include <vector>
    00046 #include <string>
    00047
    00048 // forward declarations;
    00049 class TeProjection;
    00050 class TeSTElementSet;
    00051 class OGRDataSource;
    00052 class OGRLayer;
    00053 class TeLayer;
    00054
    00055 class TEGDAL_DLL TeOGRDriver : public TeGeoDataDriver
    00056 {
    00057 public:
    00058
    00059            TeOGRDriver(const std::string& fileName, const bool &writing=false, const std::string &OGRDriverName="GML");
    00060
    00061     ~TeOGRDriver();
    00062
    00064            virtual std::string getFileName();
    00065
    00067            virtual bool isDataAccessible();
    00068
    00070            virtual TeProjection * getDataProjection();
    00071
    00073            virtual bool getDataInfo(unsigned int& nObjects, TeBox& ext, TeGeomRep& repres);
    00074
    00076            virtual bool getDataAttributesList(TeAttributeList& attList);
    00077
    00079            virtual bool loadData(TeSTElementSet* dataSet);
    00080
    00082            virtual bool loadNextElement(TeSTElementSet* dataSet);
    00083
    00085            virtual void getDriversNames(std::vector<std::string>& dnames);
    00086
    00088            virtual bool createLayer(TeLayer* layer, const int& rep = 255);
    00089
    00091            virtual bool createAttributeTable(TeTable& table);
    00092
    00094            virtual bool addElement(TeSTInstance* e);
    00095
    00096 protected:
    00097
    00098            OGRDataSource* ogrDS_;
    00099            OGRLayer* ogrLayer_;
    00100            std::string fileName_;
    00101            TeBox box_;
    00102            unsigned int numObjs_;
    00103            TeGeomRep geomType_;
    00104
    00105 private:
    00106
    00107     TeOGRDriver(const TeOGRDriver& source);
    00108
    00109     TeOGRDriver & operator=(const TeOGRDriver & source);
    00110 };
    00111
    00112 #endif // _TEOGRDRIVER_H

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines