QGIS API Documentation  2.2.0-Valmiera
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
qgsmaptopixelgeometrysimplifier.cpp File Reference
#include <limits>
#include "qgsmaptopixelgeometrysimplifier.h"
#include "qgsapplication.h"
Include dependency graph for qgsmaptopixelgeometrysimplifier.cpp:

Go to the source code of this file.

Functions

static QgsRectangle calculateBoundingBox (QGis::WkbType wkbType, unsigned char *wkb, size_t numPoints)
 Returns the BBOX of the specified WKB-point stream.
static bool generalizeWkbGeometry (QGis::WkbType wkbType, unsigned char *sourceWkb, size_t sourceWkbSize, unsigned char *targetWkb, size_t &targetWkbSize, const QgsRectangle &envelope, bool writeHeader)
 Generalize the WKB-geometry using the BBOX of the original geometry.

Function Documentation

static QgsRectangle calculateBoundingBox ( QGis::WkbType  wkbType,
unsigned char *  wkb,
size_t  numPoints 
)
inlinestatic

Returns the BBOX of the specified WKB-point stream.

Definition at line 43 of file qgsmaptopixelgeometrysimplifier.cpp.

References MathUtils::max(), and QGis::wkbDimensions().

Referenced by QgsMapToPixelSimplifier::simplifyWkbGeometry().

static bool generalizeWkbGeometry ( QGis::WkbType  wkbType,
unsigned char *  sourceWkb,
size_t  sourceWkbSize,
unsigned char *  targetWkb,
size_t &  targetWkbSize,
const QgsRectangle envelope,
bool  writeHeader 
)
inlinestatic