geometry_envelope_test - fix linking/duplicate symbols (ref #3415)
This commit is contained in:
parent
e596ffc1c2
commit
52df451ee3
2 changed files with 16 additions and 2 deletions
|
@ -1,8 +1,7 @@
|
|||
#include "catch.hpp"
|
||||
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/geometry_envelope_impl.hpp>
|
||||
//#include <mapnik/geometry_correct.hpp>
|
||||
#include <mapnik/geometry_envelope.hpp>
|
||||
|
||||
namespace {
|
||||
|
||||
|
|
15
test/unit/geometry/geometry_test_helper.cpp
Normal file
15
test/unit/geometry/geometry_test_helper.cpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/geometry_envelope.hpp>
|
||||
#include <mapnik/geometry_envelope_impl.hpp>
|
||||
|
||||
|
||||
namespace mapnik { namespace geometry {
|
||||
// instantiate types required by geometry_envelope_test
|
||||
template mapnik::box2d<int> envelope(geometry<int> const& geom);
|
||||
template mapnik::box2d<float> envelope(geometry<float> const& geom);
|
||||
template mapnik::box2d<int> envelope(polygon<int> const& geom);
|
||||
template mapnik::box2d<float> envelope(polygon<float> const& geom);
|
||||
template mapnik::box2d<int> envelope(geometry_collection<int> const& geom);
|
||||
template mapnik::box2d<float> envelope(geometry_collection<float> const& geom);
|
||||
|
||||
}}
|
Loading…
Reference in a new issue