summaryrefslogtreecommitdiff
path: root/src/mbgl/tile/geometry_tile.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-05-19 08:57:43 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-05-31 10:15:18 -0700
commit25eec28588533875c4188c99bf46ed47111601ed (patch)
tree53eba83a3e4230ea24cb997d503c7191ab705a22 /src/mbgl/tile/geometry_tile.hpp
parent58a9ca80423a0430804b0cbf3b25a550086f4f29 (diff)
downloadqtlocation-mapboxgl-25eec28588533875c4188c99bf46ed47111601ed.tar.gz
[core] Fix up v1 vector tile geometries with clipper
Diffstat (limited to 'src/mbgl/tile/geometry_tile.hpp')
-rw-r--r--src/mbgl/tile/geometry_tile.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mbgl/tile/geometry_tile.hpp b/src/mbgl/tile/geometry_tile.hpp
index 347d21e62c..2e51b4edc8 100644
--- a/src/mbgl/tile/geometry_tile.hpp
+++ b/src/mbgl/tile/geometry_tile.hpp
@@ -94,4 +94,8 @@ std::vector<GeometryCollection> classifyRings(const GeometryCollection&);
// convert from GeometryTileFeature to Feature (eventually we should eliminate GeometryTileFeature)
Feature convertFeature(const GeometryTileFeature&, const CanonicalTileID&);
+// Fix up possibly-non-V2-compliant polygon geometry using angus clipper.
+// The result is guaranteed to have correctly wound, strictly simple rings.
+GeometryCollection fixupPolygons(const GeometryCollection&);
+
} // namespace mbgl