We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
kml library? (Read 777 times)
kml library?
Dec 16th, 2008, 8:38pm
 
Does someone knows or working on a library to import kml files in processing?
Re: kml library?
Reply #1 - Dec 16th, 2008, 9:17pm
 
It might be a very useful library.

I found this:

http://code.google.com/p/gekmllib/

It looks very preliminary with minimal documentation - but I'm sure it beats building a parser from scratch.

There's also

http://google-opensource.blogspot.com/2008/03/introducing-libkml-library-for-reading.html

and that looks more official, with SWIG generated wrappers.

Tell me if you got it to work with your project.  Being able to use Sketchup output in Processing would be interesting!
Re: kml library?
Reply #2 - Dec 16th, 2008, 11:31pm
 
Thanks, gekmllib seems to be a little bit outdated and has now upadate since last year. So I will give libkml a try, although its very nerdy with this SWIG stuff.
Re: kml library?
Reply #3 - Dec 17th, 2008, 4:23am
 
Yeah, not only is it nerdy, it's in C++. Sad
Re: kml library?
Reply #4 - Dec 17th, 2008, 11:16am
 
Mhmm I think its easier to parse the kml by myself, especially I only got ones with polylines. Maybe I can figure out how to install SWIG but at this time it was a 3 hour commandline session without  success.
Re: kml library?
Reply #5 - Dec 17th, 2008, 5:02pm
 
I'm sorry to hear that.  I'll post if I have any more info, since I am very interested in using the Sketchup models generated by users.
Page Index Toggle Pages: 1