Go to the documentation of this file.
28 #ifndef __TERRALIB_WS_OGC_WMS_DATAACCESS_DATASOURCE_H
29 #define __TERRALIB_WS_OGC_WMS_DATAACCESS_DATASOURCE_H
38 #include "../client/WMSClient.h"
39 #include "../client/DataTypes.h"
40 #include "../../../../dataaccess/datasource/DataSource.h"
41 #include "../../../../dataaccess/datasource/DataSourceCapabilities.h"
101 void create(
const std::string& connInfo);
103 void drop(
const std::string& connInfo);
105 bool exists(
const std::string& connInfo);
109 std::vector<te::core::EncodingType>
getEncodings(
const std::string& connInfo);
117 std::shared_ptr<te::ws::ogc::WMSClient>
m_wms;
127 #endif // __TERRALIB_WS_OGC_WMS_DATAACCESS_DATASOURCE_H
Implementation of the data source for the WMS driver.
void open()
It opens the data source and makes it ready for using.
It represents the SQL query dialect accepted by a given data source.
The WMSGetMapResponse WMS 1.3.0 struct.
#define TEOGCWMSDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.
static te::da::DataSourceCapabilities sm_capabilities
The WMSGetMapRequest WMS 1.3.0 struct.
static void setCapabilities(const te::da::DataSourceCapabilities &capabilities)
const std::string saveGetMap(const te::ws::ogc::wms::WMSGetMapRequest &request, const std::string &filename)
It execute a WMS GetMap and save the result image on disk. The request will be based on WMSGetMapRequ...
bool exists(const std::string &connInfo)
Check the existence of a data source in a driver.
te::ws::ogc::wms::WMSGetMapResponse getMap(const te::ws::ogc::wms::WMSGetMapRequest &request)
const te::da::SQLDialect * getDialect() const
It returns the data source SQL dialect, if there is one.
~DataSource()
Virtual destructor.
void drop(const std::string &connInfo)
It removes the data source with the connection information from a driver.
std::vector< te::core::EncodingType > getEncodings(const std::string &connInfo)
te::da::DataSourceCapabilities capabilities
bool isOpened() const
It returns true if the data source is opened, otherwise it returns false.
std::vector< std::string > getDataSourceNames(const std::string &connInfo)
It gets the data source names available in a driver.
std::unique_ptr< te::da::DataSourceTransactor > getTransactor()
It returns the set of parameters used to set up the access channel to the underlying repository.
The WMSGetFeatureInfoRequest WMS 1.3.0 struct.
std::string getType() const
It returns the data source type name (in UPPER CASE). Ex: POSTGIS, SQLITE, WFS, WMS,...
std::shared_ptr< te::ws::ogc::WMSClient > m_wms
DataSource(const std::string &connInfo)
A class to store the proxy information that must be used to access data located in URIs.
const te::da::DataSourceCapabilities & getCapabilities() const
It returns the known capabilities of the data source.
The WMSGetMapResponse WMS 1.3.0 struct.
void verifyConnectionInfo() const
A class that represents the known capabilities of a specific data source, i.e. this class informs all...
const te::ws::ogc::wms::WMSGetFeatureInfoResponse getFeatureInfo(const te::ws::ogc::wms::WMSGetFeatureInfoRequest &request)
An abstract class for data providers like a DBMS, Web Services or a regular file.
DataSource(const te::core::URI &uri)
Proxy configuration file for TerraView (see terraview_config.h).
std::shared_ptr< te::ws::ogc::WMSClient > getWMSClient()
void close()
It closes the data source and clears all the resources used by its internal communication channel.
void create(const std::string &connInfo)
It creates a new data source.
bool isValid() const
It checks if the data source is valid (available for using).