A class to retrieve information and data from a Web Coverage Service. More...
#include <WCSClient.h>
Public Member Functions | |
te::ws::ogc::wcs::CoverageDescription | describeCoverage (const std::string coverage) |
Method to get the information about a coverage in the WCS server. More... | |
const te::ws::ogc::wcs::Capabilities & | getCapabilities () const |
Return the m_capabilities member. More... | |
std::string | getCoverage (const te::ws::ogc::wcs::CoverageRequest coverageRequest, te::common::TaskProgress *taskProgress=0) const |
Method to get the coverage from the WCS server. More... | |
std::string | makeFileRequest (const std::string url, const std::string fileName, te::common::TaskProgress *taskProgress=0) const |
Executes a request on a WCS server. More... | |
void | setCurlWrapper (te::ws::core::CurlWrapper *curlWrapper) |
Sets the TerraLib CurlWrapper to be used internally. More... | |
void | updateCapabilities () |
Method to get the capabilities from a WCS server and store in m_capabilities member. More... | |
WCSClient (const std::string usrDataDir="", const std::string uri="", const std::string version="2.0.1") | |
Class constructor. It initializes the m_uri and m_version class members. More... | |
~WCSClient () | |
Default destructor. More... | |
Private Member Functions | |
std::string | getFileExtension (const std::string &format) const |
Private Attributes | |
te::ws::ogc::wcs::Capabilities | m_capabilities |
std::shared_ptr< te::ws::core::CurlWrapper > | m_curl |
std::string | m_dataDir |
std::map< std::string, te::ws::ogc::wcs::CoverageDescription > | m_descriptionMap |
te::ws::ogc::wcs::XMLParser | m_parser |
te::core::URI | m_uri |
std::string | m_version |
A class to retrieve information and data from a Web Coverage Service.
Definition at line 61 of file WCSClient.h.
te::ws::ogc::WCSClient::WCSClient | ( | const std::string | usrDataDir = "" , |
const std::string | uri = "" , |
||
const std::string | version = "2.0.1" |
||
) |
Class constructor. It initializes the m_uri and m_version class members.
usrDataDir | Directory to store used temporary XML and images from WCS server. |
uri | The adress of WCS server. |
version | The WCS version. |
te::ws::ogc::WCSClient::~WCSClient | ( | ) |
Default destructor.
te::ws::ogc::wcs::CoverageDescription te::ws::ogc::WCSClient::describeCoverage | ( | const std::string | coverage | ) |
Method to get the information about a coverage in the WCS server.
coverage | The name of the coverage to describe |
const te::ws::ogc::wcs::Capabilities& te::ws::ogc::WCSClient::getCapabilities | ( | ) | const |
Return the m_capabilities member.
The m_capabilities will be empty until the updateCapabilities() method its called.
std::string te::ws::ogc::WCSClient::getCoverage | ( | const te::ws::ogc::wcs::CoverageRequest | coverageRequest, |
te::common::TaskProgress * | taskProgress = 0 |
||
) | const |
Method to get the coverage from the WCS server.
coverage | The struct with the desire coverage parameters |
|
private |
std::string te::ws::ogc::WCSClient::makeFileRequest | ( | const std::string | url, |
const std::string | fileName, | ||
te::common::TaskProgress * | taskProgress = 0 |
||
) | const |
Executes a request on a WCS server.
url | The complete url of request |
void te::ws::ogc::WCSClient::setCurlWrapper | ( | te::ws::core::CurlWrapper * | curlWrapper | ) |
Sets the TerraLib CurlWrapper to be used internally.
By default it is an instance of te::ws::core::CurlWrapper class.
curlWrapper | Wrapper to be used. |
void te::ws::ogc::WCSClient::updateCapabilities | ( | ) |
Method to get the capabilities from a WCS server and store in m_capabilities member.
To access the information contained in the m_capabilities, use the getCapabilities() method.
|
private |
Definition at line 141 of file WCSClient.h.
|
private |
Definition at line 142 of file WCSClient.h.
|
private |
Definition at line 139 of file WCSClient.h.
|
private |
Definition at line 143 of file WCSClient.h.
|
private |
Definition at line 144 of file WCSClient.h.
|
private |
Definition at line 140 of file WCSClient.h.
|
private |
Definition at line 138 of file WCSClient.h.