[test-runner] Add new metrics

This commit is contained in:
zmiao
2020-02-19 14:22:38 +02:00
parent b9425dd4ec
commit 385fcd52a0
5 changed files with 141 additions and 1 deletions

View File

@@ -165,7 +165,7 @@ ParseResult Within::parse(const Convertible& value, ParsingContext& ctx) {
mbgl::Feature f(geometrySet);
PolygonFeature polyFeature(f, CanonicalTileID(0, 0, 0));
auto refinedGeoSet = convertGeometry(polyFeature, CanonicalTileID(0, 0, 0));
return ParseResult(std::make_unique<Within>(*parsedValue, refinedGeoSet));
return ParseResult(std::make_unique<Within>(*parsedValue, std::move(refinedGeoSet)));
},
[&ctx](const auto&) {
ctx.error("'within' expression requires geojson source that contains valid geometry data.");