Changeset View
Changeset View
Standalone View
Standalone View
tools/osm-simplify/ShpCoastlineProcessor.cpp
Context not available. | |||||
18 | #include <QPolygonF> | 18 | #include <QPolygonF> | ||
---|---|---|---|---|---|
19 | #include <QDebug> | 19 | #include <QDebug> | ||
20 | 20 | | |||
21 | constexpr int MAXIMUM_POINTS_TO_ADD = 20; | ||||
22 | | ||||
21 | ShpCoastlineProcessor::ShpCoastlineProcessor(GeoDataDocument* document) : | 23 | ShpCoastlineProcessor::ShpCoastlineProcessor(GeoDataDocument* document) : | ||
22 | PlacemarkFilter(document) | 24 | PlacemarkFilter(document) | ||
23 | { | 25 | { | ||
Context not available. | |||||
64 | 66 | | |||
65 | if(tileBoundary.intersects(marblePolygon->latLonAltBox())) { | 67 | if(tileBoundary.intersects(marblePolygon->latLonAltBox())) { | ||
66 | BaseClipper clipper; | 68 | BaseClipper clipper; | ||
67 | clipper.initClipRect(tileBoundary); | 69 | clipper.initClipRect(tileBoundary, MAXIMUM_POINTS_TO_ADD - zoomLevel); | ||
68 | 70 | | |||
69 | QVector<QPolygonF> clippedPolygons; | 71 | QVector<QPolygonF> clippedPolygons; | ||
70 | 72 | | |||
Context not available. |