#include <WMSGetFeatureInfo.h>
Public Member Functions | |
| WMSGetFeatureInfo (TdkConDescriptor &descriptor) | |
| ~WMSGetFeatureInfo () | |
| std::string | getFeatureInfo (std::vector< long > &themeIds, double x, double y, int width, int height, double xmin, double ymin, double xmax, double ymax, int featureCount) |
Private Member Functions | |
| NodoXML * | createObject (std::string attr, std::string v) |
| NodoXML * | getThemeFeatureInfo (TdkView *view, TdkTheme *theme, double xmin, double ymin, double xmax, double ymax, int featureCount) |
| std::string | generateQuery (TdkTheme *theme, TdkThemeObjects *thObjs) |
Private Attributes | |
| TdkConDescriptor & | _descriptor |
| WMSGetFeatureInfo::WMSGetFeatureInfo | ( | TdkConDescriptor & | descriptor | ) |
Constructor. Constructs a WMSGetFeatureInfo object.
| Information | of what DBMS to use and how to connect to it. |
| WMSGetFeatureInfo::~WMSGetFeatureInfo | ( | ) |
Destructor. Destroys a WMSGetFeatureInfo object.
| std::string WMSGetFeatureInfo::getFeatureInfo | ( | std::vector< long > & | themeIds, | |
| double | x, | |||
| double | y, | |||
| int | width, | |||
| int | height, | |||
| double | xmin, | |||
| double | ymin, | |||
| double | xmax, | |||
| double | ymax, | |||
| int | featureCount | |||
| ) |
Generates a XML string that contains information about the desired themes' features. Generates a XML string that contains the information about the themes' features, whose theme id's are listed in the themeIds vector and whose features are located at the area defined by {(x,y),(width,height)} and bounded by a box defined by {(xmin,ymin),(xmax,ymax)}.
| Vector | filled with the desired theme id's. | |
| x | coordinate that defines the features area's origin. | |
| y | coordinate that defines the features area's origin. | |
| width | of the features area. | |
| height | of the features area. | |
| x | coordinate of the lower corner of the bounding box. | |
| y | coordinate of the lower corner of the bounding box. | |
| x | coordiante of the higher corner of the bounding box. | |
| y | coordiante of the higher corner of the bounding box. | |
| The | number of features to return at most. [if a value of zero is used (0), all the found features are returned.] |
| NodoXML * WMSGetFeatureInfo::createObject | ( | std::string | attr, | |
| std::string | v | |||
| ) | [private] |
Creates a XML node object of an attribute name and value pair.
| Attribute | name. | |
| Attribute | value. |
| NodoXML * WMSGetFeatureInfo::getThemeFeatureInfo | ( | TdkView * | view, | |
| TdkTheme * | theme, | |||
| double | xmin, | |||
| double | ymin, | |||
| double | xmax, | |||
| double | ymax, | |||
| int | featureCount | |||
| ) | [private] |
Builds a XML object with the information about the objects of a single theme.
| The | view instance that contains the theme. | |
| The | theme whose features information will be gathered. | |
| x | coordinate of the lower corner of the bounding box. | |
| y | coordinate of the lower corner of the bounding box. | |
| x | coordiante of the higher corner of the bounding box. | |
| y | coordiante of the higher corner of the bounding box. | |
| The | number of features to return at most. [if a value of zero is used (0), all the found features are returned.] |
| std::string WMSGetFeatureInfo::generateQuery | ( | TdkTheme * | theme, | |
| TdkThemeObjects * | thObjs | |||
| ) | [private] |
Generate to obtain the theme's objects' features information from the database.
| Theme | that contains the desired objects. | |
| Collection | of objects from the theme. |
TdkConDescriptor& WMSGetFeatureInfo::_descriptor [private] |
Database connection information. Contains all the necessary data to create a connection to the TDK database.
1.5.2