Use iterators for DouglasPeucker

This commit is contained in:
Patrick Niklaus
2014-08-24 23:47:56 +02:00
parent 651c07c724
commit 7d425aa76f
3 changed files with 31 additions and 29 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ class DescriptionFactory
}
// Generalize poly line
polyline_generalizer.Run(path_description, zoomLevel);
polyline_generalizer.Run(path_description.begin(), path_description.end(), zoomLevel);
// fix what needs to be fixed else
unsigned necessary_pieces = 0; // a running index that counts the necessary pieces