WMSGetMap Class Reference

#include <WMSGetMap.h>

Inheritance diagram for WMSGetMap:

TdkMonitor List of all members.

Public Member Functions

 WMSGetMap (TdkConDescriptor &descriptor)
 ~WMSGetMap ()
TdkImageFormattedgetMap (std::string srs, std::vector< long > *themeIds, int width, int height, double xmin, double ymin, double xmax, double ymax, long viewId)

Private Member Functions

void safeRelease (cdCanvas *&cv_native, cdImage *&img, cdCanvas *&cv_image, TdkCDCanvas *&canvas, TeProjection *&projection)

Private Attributes

TdkConDescriptor_descriptor

Detailed Description

Class that implements the WMS GetMap functionality. Builds an GIF image of the selected map themes.


Constructor & Destructor Documentation

WMSGetMap::WMSGetMap ( TdkConDescriptor descriptor  ) 

Constructor. Constructs a WMSGetMap object.

WMSGetMap::~WMSGetMap (  ) 

Destructor. Destroys a WMSGetMap object.


Member Function Documentation

TdkImageFormatted * WMSGetMap::getMap ( std::string  srs,
std::vector< long > *  themeIds,
int  width,
int  height,
double  xmin,
double  ymin,
double  xmax,
double  ymax,
long  viewId 
)

Builds an image based on map themes. Get the themeIds related data from the database (if they're found there) and builds a GIF image from the data, projected by srs.

Parameters:
SRC data.
Vector of all theme id's that the user wants to be in the generated image.
Desired width of the image.
Desired height of the image.
Minimum x coordinate to clip the world.
Minimum y coordinate to clip the world.
Maximum x coordinate to clip the world.
Maximum y coordinate to clip the world.
Id of the selected TDK view.
Returns:
Buffer with the generated image data.

void WMSGetMap::safeRelease ( cdCanvas *&  cv_native,
cdImage *&  img,
cdCanvas *&  cv_image,
TdkCDCanvas *&  canvas,
TeProjection *&  projection 
) [private]

Internal helper function to release the allocated resources. Releases the resources allocated by the getMap method (it's called by it).

Parameters:
Reference to the CD native (system, Server Image) canvas pointer.
Reference to the CD image data pointer of the map.
Reference to the CD map image canvas pointer.
Reference to the TDK Canvas pointer.
Reference to the terralib projection pointer for the map.


Member Data Documentation

TdkConDescriptor& WMSGetMap::_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