WMSGetFeatureInfo Class Reference

#include <WMSGetFeatureInfo.h>

List of all members.

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

NodoXMLcreateObject (std::string attr, std::string v)
NodoXMLgetThemeFeatureInfo (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


Detailed Description

Class that implements the WMS Get Feature Info capability. Builds a XML string of the desired themes' features.


Constructor & Destructor Documentation

WMSGetFeatureInfo::WMSGetFeatureInfo ( TdkConDescriptor descriptor  ) 

Constructor. Constructs a WMSGetFeatureInfo object.

Parameters:
Information of what DBMS to use and how to connect to it.

WMSGetFeatureInfo::~WMSGetFeatureInfo (  ) 

Destructor. Destroys a WMSGetFeatureInfo object.


Member Function Documentation

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)}.

Parameters:
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.]
Returns:
A XML string of the themes' features (attributes of the themes' objects).

NodoXML * WMSGetFeatureInfo::createObject ( std::string  attr,
std::string  v 
) [private]

Creates a XML node object of an attribute name and value pair.

Parameters:
Attribute name.
Attribute value.
Returns:
A XML node of the attribute name and value pair.

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.

Parameters:
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.]
Returns:
XML node with the information about the features of the theme.

std::string WMSGetFeatureInfo::generateQuery ( TdkTheme theme,
TdkThemeObjects thObjs 
) [private]

Generate to obtain the theme's objects' features information from the database.

Parameters:
Theme that contains the desired objects.
Collection of objects from the theme.
Returns:
SQL query to retrieve the objects feature information from the database.


Member Data Documentation

TdkConDescriptor& WMSGetFeatureInfo::_descriptor [private]

Database connection information. Contains all the necessary data to create a connection to the TDK database.


The documentation for this class was generated from the following files:
Generated on Fri Jun 15 16:55:01 2007 for TDK by  doxygen 1.5.2