#include "catch.hpp" #include #include #include #include TEST_CASE("Projection using MercatorProjection class to WKT") { osmium::geom::WKTFactory factory{2}; const std::string wkt{factory.create_point(osmium::Location{3.2, 4.2})}; REQUIRE(wkt == "POINT(356222.37 467961.14)"); } TEST_CASE("Projection using Projection class to WKT") { osmium::geom::WKTFactory factory{osmium::geom::Projection{3857}, 2}; const std::string wkt{factory.create_point(osmium::Location{3.2, 4.2})}; REQUIRE(wkt == "POINT(356222.37 467961.14)"); }