only apply unique to line_string and polygon

This commit is contained in:
artemp 2015-03-26 18:41:15 +01:00
parent 75699eb5b4
commit 6aae88f90f

View file

@ -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 <typename T>
result_type operator() (T & geom) const
{
boost::geometry::unique(geom);
// no-op
}
};