4 #include "../../../core/Exception.h" 5 #include "../../../../core/translator/Translator.h" 6 #include "../../../../dataaccess/dataset/DataSetType.h" 7 #include "../../../../dataaccess/datasource/DataSourceManager.h" 8 #include "../../../../dataaccess/datasource/DataSourceTransactor.h" 9 #include "../../../../geometry/Envelope.h" 11 #include "../client/DataTypes.h" 12 #include "../../../../common/StringUtils.h" 15 #include <boost/uuid/random_generator.hpp> 16 #include <boost/uuid/uuid_io.hpp> 17 #include <boost/lexical_cast.hpp> 26 static boost::uuids::basic_random_generator<boost::mt19937> gen;
28 boost::uuids::uuid u = gen();
29 std::string
id = boost::uuids::to_string(u);
33 if(ds.get() ==
nullptr)
48 std::string crs = request.
m_srs;
57 int srid = boost::lexical_cast<
int>(crs.c_str());
60 layer->setExtent(extent);
61 layer->setDataSetName(request.
m_layers[0]);
64 layer->setGetMapRequest(request);
std::vector< std::string > m_layers
TECOMMONEXPORT std::vector< std::string > SplitString(const std::string &str, const char &delimiter)
boost::shared_ptr< DataSource > DataSourcePtr
This XML Schema Document named xlinks xsd has been stored here based on the change request
static te::dt::Date ds(2010, 01, 01)
#define TE_TR(message)
It marks a string in order to get translated.
boost::error_info< struct tag_error_description, std::string > ErrorDescription
The base type for error report messages.
WMS2Layer(const std::string dataSourceId)
WMSLayerPtr operator()(const te::ws::ogc::wms::WMSGetMapRequest &request) const
static DataSourceManager & getInstance()
It returns a reference to the singleton instance.
BoundingBox m_boundingBox
An Envelope defines a 2D rectangular region.
The Layer WMS 1.3.0 struct.
std::string m_dataSourceId
A layer with reference to a WMS Layer.
Base exception class for WS Core Runtime Library.
Implementation of the transactor for the WS OGC WMS.
A functor that converts a dataset from WMS server to a TerraLib OGC WMSLayer.
te::ws::ogc::wms::Layer getLayerByName(const std::string &layerName)
boost::intrusive_ptr< WMSLayer > WMSLayerPtr
Implementation of the transactor for the WMS driver.
The WMSGetMapRequest WMS 1.3.0 struct.
The BoundingBox WMS 1.3.0 struct.