[Gdal-dev] remove colinear points from polygon
Mateusz Loskot
mateusz at loskot.net
Tue Mar 6 08:48:31 EST 2007
Mateusz Loskot wrote:
> Another possible solution is to calculate and compare slopes between
> adjacent points.
Hi,
I wrote a small C++ sample using the solution above:
http://mateusz.loskot.net/tmp/ogr_collinear_simplify.cpp.txt
The idea is to present "how things work" and for a real production code,
some optimization would be needed.
Cheers
--
Mateusz Loskot
http://mateusz.loskot.net
More information about the Gdal-dev
mailing list