A list of examples for the TerraLib DataAccess Module. More...
#include "DataAccessExamples.h"#include <terralib/common/TerraLib.h>#include <terralib/core/plugin.h>#include <terralib/core/encoding/CharEncoding.h>#include <terralib/core/uri/URI.h>#include <terralib/dataaccess/dataset/CheckConstraint.h>#include <terralib/dataaccess/dataset/PrimaryKey.h>#include <terralib/dataaccess/dataset/Index.h>#include <terralib/dataaccess/datasource/DataSourceFactory.h>#include <terralib/datatype/SimpleProperty.h>#include <terralib/memory/DataSource.h>#include <terralib/memory/DataSourceFactory.h>#include <terralib/postgis/DataSource.h>#include <terralib/postgis/DataSourceFactory.h>#include <terralib/postgis/PreparedQuery.h>#include <cassert>#include <cstdlib>#include <exception>#include <iostream>#include <map>Go to the source code of this file.
Functions | |
| bool | CheckDataSourceExistence (const std::string &dsType, const std::string &connInfo) |
| std::unique_ptr< te::da::DataSource > | CreateDataSource (const std::string &dsType, const std::string &connInfo) |
| void | DropDataSource (const std::string &dsType, const std::string &connInfo) |
| void | LoadModules () |
| Load terralib modules. More... | |
| int | main (int, char **) |
| void | PrintDataSetConstraints (te::da::DataSource *ds, const std::string &datasetName) |
| void | PrintDataSetNames (te::da::DataSource *ds) |
| void | PrintDataSetPropertyNames (te::da::DataSource *ds, const std::string &datasetName) |
| void | PrintDataSourceNames (const std::string &dsType, const std::string &connInfo) |
A list of examples for the TerraLib DataAccess Module.
A list of examples for the TerraLib TIN Module.
Definition in file examples/dataaccess/main.cpp.
| bool CheckDataSourceExistence | ( | const std::string & | dsType, |
| const std::string & | connInfo | ||
| ) |
Definition at line 114 of file examples/dataaccess/main.cpp.
References te::da::DataSource::exists().
| std::unique_ptr<te::da::DataSource> CreateDataSource | ( | const std::string & | dsType, |
| const std::string & | connInfo | ||
| ) |
Definition at line 102 of file examples/dataaccess/main.cpp.
References te::da::DataSource::create(), and ds.
| void DropDataSource | ( | const std::string & | dsType, |
| const std::string & | connInfo | ||
| ) |
Definition at line 109 of file examples/dataaccess/main.cpp.
References te::da::DataSource::drop().
| void LoadModules | ( | ) |
Load terralib modules.
It loads the data source drivers.
Load terralib modules.
It loads the data source drivers.
Definition at line 38 of file attic/unittest/dataaccess/LoadModules.h.
Referenced by main().
Definition at line 54 of file examples/dataaccess/main.cpp.
References te::core::PluginManager::clear(), CopyingData(), ExportingOGR(), TerraLib::finalize(), GDALExample(), te::common::Singleton< TerraLib >::getInstance(), TerraLib::initialize(), te::core::PluginManager::instance(), LoadModules(), MemoryExample(), OGRExampleRead(), ORGExampleWrite(), PostGISExample(), QueryExample(), and QueryInsertExample().
| void PrintDataSetConstraints | ( | te::da::DataSource * | ds, |
| const std::string & | datasetName | ||
| ) |
Definition at line 142 of file examples/dataaccess/main.cpp.
References te::da::DataSource::getPrimaryKey().
| void PrintDataSetNames | ( | te::da::DataSource * | ds | ) |
Definition at line 120 of file examples/dataaccess/main.cpp.
References te::da::DataSource::getConnectionInfo(), te::da::DataSource::getDataSetNames(), and te::core::URI::path().
| void PrintDataSetPropertyNames | ( | te::da::DataSource * | ds, |
| const std::string & | datasetName | ||
| ) |
Definition at line 133 of file examples/dataaccess/main.cpp.
References te::da::DataSource::getPropertyNames().
| void PrintDataSourceNames | ( | const std::string & | dsType, |
| const std::string & | connInfo | ||
| ) |
Definition at line 93 of file examples/dataaccess/main.cpp.
References te::da::DataSource::getDataSourceNames().