template<unsigned DIM, class InputIterator, class OutputIterator>
class psimpl::PolylineSimplification< DIM, InputIterator, OutputIterator >::DPHelper
Douglas-Peucker approximation helper class.
Contains helper implentations for Douglas-Peucker approximation that operate solely on value_type arrays and value_type pointers. Note that the PolylineSimplification class only operates on iterators.
Definition at line 1457 of file psimpl.h.
template<unsigned DIM, class InputIterator, class OutputIterator>
Finds the key for the given sub polyline.
Finds the point in the range [first, last] that is furthest away from the segment (first, last). This point is called the key.
- Parameters
-
[in] | coords | array of polyline coordinates |
[in] | first | the first coordinate of the first polyline point |
[in] | last | the first coordinate of the last polyline point |
- Returns
- the index of the key and its distance, or last when a key could not be found
Definition at line 1602 of file psimpl.h.