[OSM-dev] OT: OGR, Douglas-Peucker
SteveC
steve at asklater.com
Sat Feb 25 14:25:55 GMT 2006
* @ 25/02/06 01:37:21 PM erjohan at gmail.com wrote:
> On 2/25/06, Richard Fairhurst <richard at systemed.net> wrote:
> > Quoting Lars Aronsson <lars at aronsson.se>:
> >
> > > OGR implements line strings, but apparently not b-splines. Is
> > > this good or bad? Doesn't anybody in GIS use splines?
> >
> > As for Douglas-Peucker, I couldn't find a library either when I looked
> > last year
> > (http://www.systemed.net/blog/entry050617185604.html). I eventually settled on
> > importing the lines into Illustrator, using the excellent Simplify Path
> > function there, and exporting again - but that's not really a very sensible
> > solution except in very specific circumstances.
>
> Implementing Douglas-Peucker isn't that hard and there are some pieces
> of example code around, but I failed hard in using it. Not because it
> doesn't work, it does and it's really great for lines. But I can't
> reallt figure out how to use it with graphs, when two lines are
> connected I don't know what to remove.
>
> Perhaps I missed something trivial.
Yeah.. a simple equivalent was implemented for
www.tom-carden.co.uk/googlegpx/
code is there in ruby and javascript
have fun,
SteveC steve at asklater.com http://www.asklater.com/steve/
More information about the dev
mailing list