30 #include "../../../../qt/widgets/canvas/MapDisplay.h" 31 #include "../../../../maptools/WorldDeviceTransformer.h" 32 #include "../dataaccess/WMSLayer.h" 33 #include "../client/DataTypes.h" 36 #include <QTreeWidget> 51 if(wmsLayer ==
nullptr)
58 (layer->getSRID() != display->
getSRID()))
63 if(!reprojectedEnvelope.
intersects(layer->getExtent()))
70 display->width(), display->height());
72 double x1, y1, x2, y2;
86 infoRequest.
m_i =
static_cast<int>(center.
getX());
87 infoRequest.
m_j =
static_cast<int>(center.
getY());
92 getFeatureInfoItem->setText(0, QString(
"GetFeatureInfo"));
98 if(treeWidget !=
nullptr)
100 treeWidget->expandAll();
101 treeWidget->resizeColumnToContents(1);
virtual ~WMSGetFeatureInfoMaker()
bool intersects(const Envelope &rhs) const
It returns true if the envelopes "spatially intersects".
#define TE_UNKNOWN_SRS
A numeric value to represent a unknown SRS identification in TerraLib.
std::vector< std::string > m_queryLayers
void getInfo(QTreeWidgetItem *layerItem, te::qt::widgets::MapDisplay *display, const te::map::AbstractLayerPtr &layer, const te::gm::Envelope &e)
This function is an implementation to get feature information. The information based on WMS GetFeatur...
const double & getUpperRightX() const
It returns a constant refernce to the x coordinate of the upper right corner.
WMSGetMapRequest m_getMap
const double & getLowerLeftY() const
It returns a constant refernce to the y coordinate of the lower left corner.
An utility struct for representing 2D coordinates.
double getY() const
It returns the y-coordinate.
const double & getUpperRightY() const
It returns a constant refernce to the x coordinate of the upper right corner.
const te::ws::ogc::wms::WMSGetFeatureInfoResponse getFeatureInfo(const te::ws::ogc::wms::WMSGetFeatureInfoRequest &request)
Coord2D getCenter() const
It returns the rectangle's center coordinate.
An Envelope defines a 2D rectangular region.
virtual int getSRID() const
It return the Spatial Reference System used by the Map Display.
The WMSGetFeatureInfoRequest WMS 1.3.0 struct.
The WMSGetMapResponse WMS 1.3.0 struct.
virtual const te::gm::Envelope & getExtent() const
It returns the world extent showned by the MapDisplay.
A layer with reference to a WMS Layer.
te::ws::ogc::wms::WMSGetMapRequest getRequest() const
double getX() const
It returns the x-coordinate.
const std::string & getDataSetName() const
const double & getLowerLeftX() const
It returns a constant reference to the x coordinate of the lower left corner.
WMSGetFeatureInfoMaker is a WMS implementation of AbstractFeatureInfoMaker that could be used to fill...
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
void transform(int oldsrid, int newsrid)
It will transform the coordinates of the Envelope from the old SRS to the new one.
std::string m_featureInfoContent
The WMSGetMapRequest WMS 1.3.0 struct.