From 6aae88f90f4a401cf1e5a63296ebf85cd0dc3537 Mon Sep 17 00:00:00 2001 From: artemp Date: Thu, 26 Mar 2015 18:41:15 +0100 Subject: [PATCH] only apply unique to line_string and polygon --- include/mapnik/geometry_unique.hpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/include/mapnik/geometry_unique.hpp b/include/mapnik/geometry_unique.hpp index 51b0dda18..167822801 100644 --- a/include/mapnik/geometry_unique.hpp +++ b/include/mapnik/geometry_unique.hpp @@ -50,10 +50,20 @@ struct geometry_unique } } + result_type operator() (line_string & line) const + { + boost::geometry::unique(line); + } + + result_type operator() (polygon & poly) const + { + boost::geometry::unique(poly); + } + template result_type operator() (T & geom) const { - boost::geometry::unique(geom); + // no-op } };