6 #include "../../../../core/translator/Translator.h" 7 #include "../../../../maptools/AbstractLayer.h" 8 #include "../../../../maptools/Canvas.h" 9 #include "../../../../maptools/Utils.h" 10 #include "../../../../dataaccess/utils/Utils.h" 11 #include "../../../../geometry/Envelope.h" 12 #include "../../../../se/Utils.h" 13 #include "../../../../se/CoverageStyle.h" 14 #include "../../../../raster/RasterProperty.h" 15 #include "../../../core/Exception.h" 16 #include "../../../core/Utils.h" 17 #include "../../../../srs/Config.h" 18 #include "../../../../srs/SpatialReferenceSystemManager.h" 21 #include <boost/format.hpp> 32 if(wmsLayer ==
nullptr)
43 else if(layer->
getSRID() != srid)
58 std::string epsgCode =
"EPSG:" + std::to_string(srid);
61 boundingBox.
m_crs = epsgCode;
69 request.
m_srs = epsgCode;
75 std::unique_ptr<te::da::DataSetType> dsType = wmsLayer->
getSchema();
TEDATAACCESSEXPORT te::rst::RasterProperty * GetFirstRasterProperty(const DataSetType *dt)
bool intersects(const Envelope &rhs) const
It returns true if the envelopes "spatially intersects".
The Style defines the styling that is to be applied to a geographic dataset (vector geometries or cov...
This is the base class for layers.
#define TE_UNKNOWN_SRS
A numeric value to represent a unknown SRS identification in TerraLib.
virtual const std::string & getTitle() const
It returns the layer title.
This XML Schema Document named xlinks xsd has been stored here based on the change request
The CoverageStyle defines the styling that is to be applied to a subset of Coverage data...
const double & getUpperRightX() const
It returns a constant refernce to the x coordinate of the upper right corner.
TESEEXPORT Style * CreateCoverageStyle(const std::vector< te::rst::BandProperty * > &properties)
Try creates an appropriate coverage style based on given band properties.
const double & getLowerLeftY() const
It returns a constant refernce to the y coordinate of the lower left corner.
virtual std::unique_ptr< te::map::LayerSchema > getSchema() const
It returns the layer schema.
const double & getUpperRightY() const
It returns a constant refernce to the x coordinate of the upper right corner.
#define TE_TR(message)
It marks a string in order to get translated.
void draw(te::map::AbstractLayer *layer, te::map::Canvas *canvas, const te::gm::Envelope &bbox, int srid, const double &scale, bool *cancel)
It draws the layer geographic objects in the given canvas using the SRS informed. ...
boost::error_info< struct tag_error_description, std::string > ErrorDescription
The base type for error report messages.
TEMAPEXPORT void DrawRaster(te::da::DataSetType *type, te::da::DataSourcePtr ds, Canvas *canvas, const te::gm::Envelope &bbox, int bboxSRID, const te::gm::Envelope &visibleArea, int srid, te::se::CoverageStyle *style, te::map::RasterContrast *rc, const double &scale, bool *cancel)
BoundingBox m_boundingBox
An Envelope defines a 2D rectangular region.
virtual te::se::Style * getStyle() const
It returns the Style associated to the layer.
virtual int getHeight() const =0
It returns the canvas height.
void setGetMapRequest(const te::ws::ogc::wms::WMSGetMapRequest &getMapRequest)
A layer with reference to a WMS Layer.
Utility functions for the data access module.
te::ws::ogc::wms::WMSGetMapRequest getRequest() const
Base exception class for WS Core Runtime Library.
virtual const te::gm::Envelope & getExtent() const
It returns the Layer extent (or minimum bounding box).
virtual te::map::RasterContrast * getRasterContrast() const
It returns the raster contrast associated to the Layer.
TEMAPEXPORT te::rst::Raster * GetRaster(AbstractLayer *layer)
It gets the raster referenced by the given data set layer.
A canvas is an abstraction of a drawing area.
const double & getLowerLeftX() const
It returns a constant reference to the x coordinate of the lower left corner.
virtual void setStyle(te::se::Style *style)
It sets the Style associated to the layer.
virtual int getSRID() const
It returns the Spatial Reference System ID associated to the Layer.
virtual int getSRID() const
It returns the Spatial Reference System ID associated to the Layer.
std::vector< te::rst::BandProperty * > & getBandProperties()
Returns a reference to the list of bands definitions.
void transform(int oldsrid, int newsrid)
It will transform the coordinates of the Envelope from the old SRS to the new one.
virtual int getWidth() const =0
It returns the canvas width.
The WMSGetMapRequest WMS 1.3.0 struct.
The BoundingBox WMS 1.3.0 struct.