#include #include #include namespace mbgl { GeometryCollection getGeometries(const GeometryTileFeature& feature) { const float scale = float(util::EXTENT) / feature.getExtent(); GeometryCollection geometryCollection = feature.getGeometries(); for (auto& line : geometryCollection) { for (auto& point : line) { point.x = ::round(point.x * scale); point.y = ::round(point.y * scale); } } return geometryCollection; } } // namespace mbgl