Closed sebastic closed 8 years ago
Thanks for the report @sebastic - We'll take a look, if not today then early next week.
@sebastic I think I see the problem. Can you try this patch:
diff --git a/src/vector_tile_geometry_decoder.cpp b/src/vector_tile_geometry_decoder.cpp
index 07cfc39..528f6f5 100644
--- a/src/vector_tile_geometry_decoder.cpp
+++ b/src/vector_tile_geometry_decoder.cpp
@@ -22,6 +22,22 @@ template mapnik::geometry::geometry<std::int64_t> decode_geometry<std::int64_t>(
std::int64_t tile_y,
double scale_x,
double scale_y);
+template mapnik::geometry::geometry<double> decode_geometry<double>(GeometryPBF & paths,
+ int32_t geom_type,
+ unsigned version,
+ double tile_x,
+ double tile_y,
+ double scale_x,
+ double scale_y,
+ mapnik::box2d<double> const& bbox);
+template mapnik::geometry::geometry<std::int64_t> decode_geometry<std::int64_t>(GeometryPBF & paths,
+ int32_t geom_type,
+ unsigned version,
+ std::int64_t tile_x,
+ std::int64_t tile_y,
+ double scale_x,
+ double scale_y,
+ mapnik::box2d<double> const& bbox);
} // end ns vector_tile_impl
Thanks for the patch, the additional templates did the trick.
In retrospect I'm somewhat ashamed that I did not notice the discrepancy between the .cpp & .hpp files.
Okay, thank you for testing/confirming. I think this is a bug but it is only happening on some systems because of how different linkers strip symbols. I will commit the fix now. Thanks again for finding this!
I've been trying to build mapnik-vector-tile 1.2.0 & 1.2.1 since they were released, but the builds fail due to undefined references similar to those reported in #187:
I'm at a loss at what is causing this and how to fix it. Not having mapnik-vector-tile >= 1.2.0 is preventing the update of node-mapnik to 3.5.13, and both need to be rebuild with Mapnik 3.0.12 which is required for Boost 1.61 support.
It seems the changes to
decode_geometry()
in version 1.2.0 are related, though the first prototype insrc/vector_tile_geometry_decoder.hpp
should match:Full buildlog: mapnik-vector-tile_1.2.1+dfsg-1_amd64-build.txt