diff --git a/include/mbgl/style/expression/within.hpp b/include/mbgl/style/expression/within.hpp index 4116b60bc88..37e27f49400 100644 --- a/include/mbgl/style/expression/within.hpp +++ b/include/mbgl/style/expression/within.hpp @@ -1,11 +1,8 @@ #pragma once -#include #include -#include #include - -#include +#include namespace mbgl { namespace style { diff --git a/src/mbgl/style/expression/within.cpp b/src/mbgl/style/expression/within.cpp index 0447dfe2280..7dc55eda7fe 100644 --- a/src/mbgl/style/expression/within.cpp +++ b/src/mbgl/style/expression/within.cpp @@ -2,7 +2,7 @@ #include #include -#include +#include #include #include @@ -10,7 +10,6 @@ #include #include -#include namespace mbgl { namespace { diff --git a/src/mbgl/util/geometry_within.cpp b/src/mbgl/util/geometry_within.cpp index bb620470770..344e15b5d76 100644 --- a/src/mbgl/util/geometry_within.cpp +++ b/src/mbgl/util/geometry_within.cpp @@ -1,5 +1,4 @@ #include -#include namespace mbgl { diff --git a/test/android/.project b/test/android/.project new file mode 100644 index 00000000000..0e0a1bac2d3 --- /dev/null +++ b/test/android/.project @@ -0,0 +1,17 @@ + + + android_ + Project android_ created by Buildship. + + + + + org.eclipse.buildship.core.gradleprojectbuilder + + + + + + org.eclipse.buildship.core.gradleprojectnature + + diff --git a/test/style/property_expression.test.cpp b/test/style/property_expression.test.cpp index 672cff44f51..88096bab6b1 100644 --- a/test/style/property_expression.test.cpp +++ b/test/style/property_expression.test.cpp @@ -266,7 +266,7 @@ TEST(PropertyExpression, WithinExpression) { PropertyExpression propExpr(std::move(expression)); // evaluation test with valid geojson source but FeatureType is not Point/LineString (currently only support - // FeatureType::Point) + // FeatureType::Point and FeatureType::LineString) { // testPoly is inside polygon, but will return false Polygon testRing{{{-9.228515625, -17.560246503294888}, @@ -280,12 +280,12 @@ TEST(PropertyExpression, WithinExpression) { } // evaluation test with valid geojson source and valid linestring features { - // testLine is inside polygon, but will return true + // testLine is inside polygon LineString testLine0{{-9.228515625, -17.560246503294888}, {-2.4609375, -16.04581345375217}}; auto geoLine0 = convertGeometry(testLine0, canonicalTileID); StubGeometryTileFeature lineFeature0(FeatureType::LineString, geoLine0); - // testLine is intersecting polygon even though end points are all inside polygon, but will return false + // testLine is intersecting polygon even though end points are all inside polygon, will return false LineString testLine1{{-10.4150390625, -10.082445532162465}, {-8.8275146484375, -9.194292714912638}}; auto geoLine1 = convertGeometry(testLine1, canonicalTileID); StubGeometryTileFeature lineFeature1(FeatureType::LineString, geoLine1);