| 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/kernel/TeGeoDataDriver.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 /*
    00024            \file TeGeoDataDriver.h
    00025            \brief This file contains contains the abstract definition of a driver to geographical data files with vectorial representation.
    00026 */
    00027
    00028 #ifndef __TERRALIB_INTERNAL_GEODATADRIVER_H
    00029 #define __TERRALIB_INTERNAL_GEODATADRIVER_H
    00030
    00031 class TeProjection;
    00032 class TeSTElementSet;
    00033 class TeLayer;
    00034 class TeTable;
    00035 class TeSTInstance;
    00036
    00037 #include "TeDataTypes.h"
    00038 #include "TeAttribute.h"
    00039 #include "TeBox.h"
    00040
    00041 #include "TeDefines.h"
    00042
    00043 #include <string>
    00044
    00046 class TL_DLL TeGeoDataDriver
    00047 {
    00048 public:
    00049
    00051            virtual ~TeGeoDataDriver() {}
    00052
    00054            virtual std::string getFileName() = 0;
    00055
    00057            virtual bool isDataAccessible() = 0;
    00058
    00060            virtual TeProjection* getDataProjection() = 0;
    00061
    00063            /*
    00064                       \param nObjects to return the number of objects accessible in the data set
    00065                       \param ext to return the spatial extension of the geometries in the data set
    00066                       \param repres to return the type of geometries in the file
    00067                       \return true if or false whether it can retrieve the information or not
    00068            */
    00069            virtual bool getDataInfo(unsigned int& nObjects , TeBox& ext, TeGeomRep& repres) = 0;
    00070
    00072            virtual bool getDataAttributesList(TeAttributeList& attList) = 0;
    00073
    00075            /*
    00076                       \param dataSet to return data set
    00077                       \return true if or false whether it can retrieve the information or not
    00078            */
    00079            virtual bool loadData(TeSTElementSet* dataSet) = 0;
    00080
    00082            virtual bool loadNextElement(TeSTElementSet* dataSet) { return false; }
    00083
    00085
    00090            virtual bool createLayer(TeLayer* layer, const int& rep) { return false; }
    00091
    00093
    00097            virtual bool createAttributeTable(TeTable& table) { return false; }
    00098
    00100
    00104            virtual bool addElement(TeSTInstance* e) { return false; }
    00105
    00106            static TeGeoDataDriver*          DefaultObject() { return 0; }
    00107 };
    00108
    00109 #endif //__TERRALIB_INTERNAL_GEODATADRIVER_H

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines