28 #ifndef __TERRALIB_WS_OGC_WCS_CLIENT_WMS_H
29 #define __TERRALIB_WS_OGC_WCS_CLIENT_WMS_H
38 #include "../../../../core/uri/URI.h"
39 #include "../../../core/CurlWrapper.h"
68 WMSClient(
const std::string& usrDataDir =
"",
const std::string& uri =
"",
const std::string& version =
"1.3.0");
125 std::string
makeFileRequest(
const std::string& url,
const std::string& fileName)
const;
168 std::shared_ptr<te::ws::core::CurlWrapper>
m_curl;
169 std::unique_ptr<te::ws::ogc::wms::XMLParser>
m_parser;
te::da::DataSourceCapabilities capabilities
A class to store the proxy information that must be used to access data located in URIs.
An abstraction to Lib Curl functions.
A class to retrieve information and data from a Web Map Service.
te::ws::ogc::wms::WMSCapabilities m_capabilities
WMSClient(const std::string &usrDataDir="", const std::string &uri="", const std::string &version="1.3.0")
Class constructor. It initializes the m_uri and m_version class members.
void setCurlWrapper(te::ws::core::CurlWrapper *curlWrapper)
Sets the TerraLib CurlWrapper to be used internally.
void updateCapabilities()
Method to get the capabilities from a WMS server and store in m_capabilities member.
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...
~WMSClient()
Default destructor.
std::unique_ptr< te::ws::ogc::wms::XMLParser > m_parser
void setCapabilities(const te::ws::ogc::wms::WMSCapabilities &capabilities)
std::shared_ptr< te::ws::core::CurlWrapper > m_curl
const te::ws::ogc::wms::WMSCapabilities & getCapabilities() const
Return the WMSCapabilities member.
std::string buildGetMapRequestURL(const te::ws::ogc::wms::WMSGetMapRequest &request) const
const te::ws::ogc::wms::WMSGetMapResponse getMap(const te::ws::ogc::wms::WMSGetMapRequest &request) const
Return the WMSGetMapResponse member.
const te::ws::ogc::wms::WMSGetFeatureInfoResponse getFeatureInfo(const te::ws::ogc::wms::WMSGetFeatureInfoRequest &request) const
It execute a WMS GetFeatureInfo and returns a WMSGetFeatureInfoResponse with the result.
std::string makeFileRequest(const std::string &url, const std::string &fileName) const
Executes a request on a WMS server.
std::string build130GetMapRequestURL(const te::ws::ogc::wms::WMSGetMapRequest &request) const
std::string build111GetMapRequestURL(const te::ws::ogc::wms::WMSGetMapRequest &request) const
std::string buildGetFeatureInfoURL(const te::ws::ogc::wms::WMSGetFeatureInfoRequest &request) const
std::string build111GetFeatureInfoURL(const te::ws::ogc::wms::WMSGetFeatureInfoRequest &request) const
std::string makeRequest(const std::string &url) const
Executes a request on a WMS server.
std::string build130GetFeatureInfoURL(const te::ws::ogc::wms::WMSGetFeatureInfoRequest &request) const
The Capability WMS 1.3.0 struct.
The WMSGetFeatureInfoRequest WMS 1.3.0 struct.
The WMSGetMapResponse WMS 1.3.0 struct.
The WMSGetMapRequest WMS 1.3.0 struct.
The WMSGetMapResponse WMS 1.3.0 struct.
#define TEOGCWMSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Proxy configuration file for TerraView (see terraview_config.h).
Specifies containers for WMS data types.