QGIS API Documentation  2.3.0-Master
 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. More...
 
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. More...
 

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