libosmscout  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
Transformation.cpp File Reference
#include <osmscout/util/Transformation.h>
#include <cstring>
#include <limits>

Namespaces

 osmscout
 Original source: https://github.com/philipperemy/easy-encryption/blob/master/b64.h licensed under terms of MIT license.
 

Functions

static double osmscout::CalculateDistancePointToLineSegment (const TransPoint &p, const TransPoint &a, const TransPoint &b)
 Calculates the distance between a point p and a line defined by the points a and b. More...
 
static double osmscout::CalculateDistancePointToPoint (const TransPoint &a, const TransPoint &b)
 
CoordBufferRange osmscout::CopyPolygonToCoordBuffer (const TransBuffer &transBuffer, CoordBuffer &coordBuffer)
 
static void osmscout::DropEqualPoints (TransBuffer &buffer)
 
static void osmscout::DropRedundantPointsDouglasPeuckerArea (TransBuffer &buffer, double optimizeErrorTolerance)
 
static void osmscout::DropRedundantPointsDouglasPeuckerWay (TransBuffer &buffer, double optimizeErrorTolerance)
 
static void osmscout::DropRedundantPointsFast (TransBuffer &buffer, double optimizeErrorTolerance)
 
static void osmscout::DropSimilarPoints (TransBuffer &buffer, double optimizeErrorTolerance)
 
static void osmscout::EnsureSimple (TransBuffer &buffer, bool isArea)
 
void osmscout::OptimizeArea (TransBuffer &buffer, TransPolygon::OptimizeMethod optimize, double optimizeErrorTolerance, TransPolygon::OutputConstraint constraint)
 Optimize a already transformed area. More...
 
void osmscout::OptimizeWay (TransBuffer &buffer, TransPolygon::OptimizeMethod optimize, double optimizeErrorTolerance, TransPolygon::OutputConstraint constraint)
 Optimize a already transformed way. More...
 
static void osmscout::SimplifyPolyLineDouglasPeucker (TransPoint *points, size_t beginIndex, size_t endIndex, size_t endValueIndex, double optimizeErrorToleranceSquared)
 
void osmscout::TransformBoundingBox (const GeoBox &boundingBox, TransBuffer &buffer, const Projection &projection, TransPolygon::OptimizeMethod optimize, double optimizeErrorTolerance, TransPolygon::OutputConstraint constraint=TransPolygon::noConstraint)
 Transform form geo to screen coordinates and (optionally) optimize the passed way with the given coordinates. More...
 
CoordBufferRange osmscout::TransformBoundingBox (const GeoBox &boundingBox, TransBuffer &buffer, CoordBuffer &coordBuffer, const Projection &projection, TransPolygon::OptimizeMethod optimize, double optimizeErrorTolerance)
 Transform the geo coordinates to display coordinates of the given bounding box and copy the resulting coordinates the the given CoordBuffer. More...