#include <WMSGetMap.h>
Inheritance diagram for WMSGetMap:

Public Member Functions | |
| WMSGetMap (TdkConDescriptor &descriptor) | |
| ~WMSGetMap () | |
| TdkImageFormatted * | getMap (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 |
| WMSGetMap::WMSGetMap | ( | TdkConDescriptor & | descriptor | ) |
Constructor. Constructs a WMSGetMap object.
| WMSGetMap::~WMSGetMap | ( | ) |
Destructor. Destroys a WMSGetMap object.
| 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.
| 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. |
| 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).
| 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. |
TdkConDescriptor& WMSGetMap::_descriptor [private] |
Database connection information. Contains all the necessary data to create a connection to the TDK database.
1.5.2