17 #ifndef QGSMAPTOPIXELGEOMETRYSIMPLIFIER_H
18 #define QGSMAPTOPIXELGEOMETRYSIMPLIFIER_H
48 static bool simplifyWkbGeometry(
int simplifyFlags,
QGis::WkbType wkbType,
unsigned char* sourceWkb,
size_t sourceWkbSize,
unsigned char* targetWkb,
size_t& targetWkbSize,
const QgsRectangle& envelope,
double map2pixelTol,
bool writeHeader =
true,
bool isaLinearRing =
false );
58 static float calculateLengthSquared2D(
double x1,
double y1,
double x2,
double y2 );
73 static bool canbeGeneralizedByMapBoundingBox(
const QgsRectangle& envelope,
double map2pixelTol );
83 #endif // QGSMAPTOPIXELGEOMETRYSIMPLIFIER_H