37 #include <boost/test/unit_test.hpp> 40 #include <curl/curl.h> 51 std::string dataDir = TERRALIB_DATA_DIR;
54 std::string url =
"http://demo.geo-solutions.it/geoserver/ows";
57 std::string version =
"2.0.1";
66 std::vector<std::string> coverages = capabilities.
coverages;
68 BOOST_CHECK(coverages.size() > 0);
79 std::string dataDir = TERRALIB_DATA_DIR;
82 std::string url =
"http://wrongaddress.org/geoserver/ows";
85 std::string version =
"2.0.1";
100 std::string dataDir = TERRALIB_DATA_DIR;
103 std::string url =
"http://demo.geo-solutions.it/geoserver/ows";
106 std::string version =
"1.0.0";
127 std::string dataDir = TERRALIB_DATA_DIR;
130 std::string url =
"http://demo.geo-solutions.it/geoserver/ows";
133 std::string version =
"2.0.1";
137 std::string coverageName =
"nurc__mosaic";
145 BOOST_CHECK(description.coverageId == coverageName);
146 BOOST_CHECK(envelope.
srsName ==
"EPSG:4326");
157 std::string dataDir = TERRALIB_DATA_DIR;
160 std::string url =
"http://demo.geo-solutions.it/geoserver/ows";
163 std::string version =
"2.0.1";
168 std::string coverageId =
"nurc__mosaic";
173 request.
format =
"image/tiff";
175 std::string coverageDiskPath = client.
getCoverage(request);
177 std::string expectedResult = dataDir + std::string(
"/wcs/") + coverageId +
".tif";
179 BOOST_CHECK(coverageDiskPath == expectedResult);
This XML Schema Document named xlinks xsd has been stored here based on the change request
std::vector< std::string > coverages
te::ws::ogc::wcs::CoverageDescription describeCoverage(const std::string coverage)
Method to get the information about a coverage in the WCS server.
void updateCapabilities()
Method to get the capabilities from a WCS server and store in m_capabilities member.
static ApplicationController & getInstance()
It returns a reference to the singleton instance.
te::da::DataSourceCapabilities capabilities
A struct to set the parameters of requested coverage.
A class to retrieve information and data from a Web Coverage Service.
This class is designed to declare objects to be thrown as exceptions by TerraLib. ...
Base exception class for WS Core Runtime Library.
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.
Exception classes for the WS Core Runtime Library.
BOOST_AUTO_TEST_CASE(getcapabilities_test)
This class is designed to declare objects to be thrown as exceptions by TerraLib. ...
const te::ws::ogc::wcs::Capabilities & getCapabilities() const
Return the m_capabilities member.
The base API for controllers of TerraLib applications.