QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Macros | Functions
qgsmaptopixelgeometrysimplifier.cpp File Reference
#include <limits>
#include "qgsmaptopixelgeometrysimplifier.h"
#include "qgsapplication.h"
#include "qgslogger.h"
#include "simplify/effectivearea.h"
#include "simplify/effectivearea.c"
Include dependency graph for qgsmaptopixelgeometrysimplifier.cpp:

Go to the source code of this file.

Macros

#define FLAGS_GET_Z(flags)   ( ( flags ) & 0x01 )
 
#define FP_MAX   qMax
 
#define LW_MSG_MAXLEN   256
 
#define lwalloc   qgsMalloc
 
#define LWDEBUG
 
#define LWDEBUGF
 
#define lwerror   qWarning
 
#define lwfree   qgsFree
 

Functions

static QgsRectangle calculateBoundingBox (QGis::WkbType wkbType, QgsConstWkbPtr wkbPtr, int numPoints)
 Returns the BBOX of the specified WKB-point stream. More...
 
static bool generalizeWkbGeometryByBoundingBox (QGis::WkbType wkbType, QgsConstWkbPtr sourceWkbPtr, QgsWkbPtr targetWkbPtr, int &targetWkbSize, const QgsRectangle &envelope, bool writeHeader)
 Generalize the WKB-geometry using the BBOX of the original geometry. More...
 
double * getPoint_internal (const POINTARRAY *inpts, int pointIndex)
 

Macro Definition Documentation

◆ FLAGS_GET_Z

#define FLAGS_GET_Z (   flags)    ( ( flags ) & 0x01 )

Definition at line 91 of file qgsmaptopixelgeometrysimplifier.cpp.

◆ FP_MAX

#define FP_MAX   qMax

Definition at line 90 of file qgsmaptopixelgeometrysimplifier.cpp.

◆ LW_MSG_MAXLEN

#define LW_MSG_MAXLEN   256

Definition at line 92 of file qgsmaptopixelgeometrysimplifier.cpp.

◆ lwalloc

#define lwalloc   qgsMalloc

Definition at line 93 of file qgsmaptopixelgeometrysimplifier.cpp.

◆ LWDEBUG

#define LWDEBUG

Definition at line 88 of file qgsmaptopixelgeometrysimplifier.cpp.

◆ LWDEBUGF

#define LWDEBUGF

Definition at line 89 of file qgsmaptopixelgeometrysimplifier.cpp.

◆ lwerror

#define lwerror   qWarning

Definition at line 95 of file qgsmaptopixelgeometrysimplifier.cpp.

◆ lwfree

#define lwfree   qgsFree

Definition at line 94 of file qgsmaptopixelgeometrysimplifier.cpp.

Function Documentation

◆ calculateBoundingBox()

static QgsRectangle calculateBoundingBox ( QGis::WkbType  wkbType,
QgsConstWkbPtr  wkbPtr,
int  numPoints 
)
inlinestatic

Returns the BBOX of the specified WKB-point stream.

Definition at line 62 of file qgsmaptopixelgeometrysimplifier.cpp.

◆ generalizeWkbGeometryByBoundingBox()

static bool generalizeWkbGeometryByBoundingBox ( QGis::WkbType  wkbType,
QgsConstWkbPtr  sourceWkbPtr,
QgsWkbPtr  targetWkbPtr,
int &  targetWkbSize,
const QgsRectangle envelope,
bool  writeHeader 
)
static

Generalize the WKB-geometry using the BBOX of the original geometry.

Definition at line 108 of file qgsmaptopixelgeometrysimplifier.cpp.

◆ getPoint_internal()

double* getPoint_internal ( const POINTARRAY *  inpts,
int  pointIndex 
)

Definition at line 100 of file qgsmaptopixelgeometrysimplifier.cpp.