Go to the documentation of this file.
26 #ifndef __TERRALIB_OGR_INTERNAL_DATASOURCE_H
27 #define __TERRALIB_OGR_INTERNAL_DATASOURCE_H
31 #include "../dataaccess/datasource/DataSource.h"
32 #include "../dataaccess/datasource/DataSourceCapabilities.h"
33 #include "../dataaccess/dataset/DataSetType.h"
100 void create(
const std::string& connInfo);
102 void drop(
const std::string& connInfo);
104 bool exists(
const std::string& connInfo);
122 #endif // __TERRALIB_OGR_INTERNAL_DATASOURCE_H
te::da::DataSourceCapabilities m_capabilities
OGR capabilities.
const te::da::SQLDialect * getDialect() const
It returns the data source SQL dialect, if there is one.
std::unique_ptr< te::da::DataSourceTransactor > getTransactor()
It returns the set of parameters used to set up the access channel to the underlying repository.
bool m_isValid
True if this is a valid datasource.
bool isOpened() const
It returns true if the data source is opened, otherwise it returns false.
te::da::DataSource * Build(const te::core::URI &uri)
It represents the SQL query dialect accepted by a given data source.
void open()
It opens the data source and makes it ready for using.
void drop(const std::string &connInfo)
It removes the data source with the connection information from a driver.
DataSource(const std::string &connInfo)
void close()
It closes the data source and clears all the resources used by its internal communication channel.
std::vector< std::string > getDataSourceNames(const std::string &connInfo)
It gets the data source names available in a driver.
te::core::EncodingType m_encoding
The data source encoding type.
static te::da::SQLDialect * sm_myDialect
OGR SQL dialect.
DataSource(const te::core::URI &uri)
void createDataSet(te::da::DataSetType *dt, const std::map< std::string, std::string > &options)
It creates the dataset schema definition in the target data source.
GDALDataset * m_ogrDS
A pointer to OGR Data Source.
void setEncoding(const te::core::EncodingType &et)
It sets the encodings for the data source.
const te::da::DataSourceCapabilities & getCapabilities() const
It returns the known capabilities of the data source.
void createOGRDataSource()
An exception class for the XML module.
bool isValid() const
It checks if the data source is valid (available for using).
static void setDialect(te::da::SQLDialect *dialect)
te::core::EncodingType getEncoding()
It return the DataSource current encoding.
A class to store the proxy information that must be used to access data located in URIs.
GDALDataset * getOGRDataSource()
bool isInTransaction() const
bool exists(const std::string &connInfo)
Check the existence of a data source in a driver.
std::string getType() const
It returns the data source type name (in UPPER CASE). Ex: POSTGIS, SQLITE, WFS, WMS,...
The OGR data source provider.
#define TEOGREXPORT
You can use this macro in order to export/import classes and functions from this module.
A class that represents the known capabilities of a specific data source, i.e. this class informs all...
An abstract class for data providers like a DBMS, Web Services or a regular file.
EncodingType
Supported character encodings.
Proxy configuration file for TerraView (see terraview_config.h).
std::size_t m_transactionCount
A counter to handle nested transactions.
void create(const std::string &connInfo)
It creates a new data source.
~DataSource()
Virtual destructor.
A class that models the description of a dataset.
void updateCapabilities()