only apply unique to line_string and polygon
This commit is contained in:
parent
75699eb5b4
commit
6aae88f90f
1 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue