Add wrapper function to DouglasPlucker for backwards-compability

This commit is contained in:
Patrick Niklaus 2014-10-23 00:51:29 +02:00
parent 3b727dea99
commit edc39112e2
2 changed files with 6 additions and 0 deletions

View File

@ -106,6 +106,11 @@ DouglasPeucker::DouglasPeucker()
{
}
void DouglasPeucker::Run(std::vector<SegmentInformation> &input_geometry, const unsigned zoom_level)
{
Run(std::begin(input_geometry), std::end(input_geometry), zoom_level);
}
void DouglasPeucker::Run(RandomAccessIt begin, RandomAccessIt end, const unsigned zoom_level)
{
unsigned size = std::distance(begin, end);

View File

@ -55,6 +55,7 @@ class DouglasPeucker
public:
DouglasPeucker();
void Run(RandomAccessIt begin, RandomAccessIt end, const unsigned zoom_level);
void Run(std::vector<SegmentInformation> &input_geometry, const unsigned zoom_level);
};
#endif /* DOUGLASPEUCKER_H_ */