Importing gps data?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Display Modes
  07 July 2009
Importing gps data?

Hello,

Has anyone tried to import gps data (gpx) to Softimage?

I would guess it shouldn't be too difficult to use the coordinate and elevation data from the gpx (=xml) file to generate a curve? But does such an importer exists and how easy it is to code one if it doesn't? Is there for example a ready interface provided for writing importers?
 
  07 July 2009
I don't think there's what you would call a "ready interface", but I think I remember some example importers in the SDK docs.
But as you say, it shouldn't be too tough if this is an XML file. It shouldn't be much more difficult than parsing the file for the relevant data and passing that into a generate curve Op or directly into the geometry description of an existing primitive.
 
  07 July 2009
Thanks for the reply!

Yeah, there's an example in the docs, I need to take a closer look at that.

Just out of curiosity, are these (importers/exporters) usually written in c++ as in the example? I kind of thought it would be python code. No matter though, I more familiar with c++ than python
 
  07 July 2009
Originally Posted by wannabeArtist: Thanks for the reply!

Yeah, there's an example in the docs, I need to take a closer look at that.

Just out of curiosity, are these (importers/exporters) usually written in c++ as in the example? I kind of thought it would be python code. No matter though, I more familiar with c++ than python

If you want to use Python, elementree module makes manipulating xml data trivial.

http://effbot.org/zone/element-index.htm
 
  07 July 2009
As of Python 2.5 the excellent celemnttree is part of the default distribution.
There's also the free lxml which is pretty nice if you want a better/bigger xpath and parsing.
__________________
Come, Join the Cult http://www.cultofrig.com - Rigging from First Principles
 
  07 July 2009
Thanks guys!

I could try to go with Python, but are there any Importer/Exporter examples around done with it? The example in XSI docs is in C++ as mentioned before and therefore seemed like a good starting point, but if xml manipulation is easier with Python then I might want to try that instead.

Personally I have no experience with neither for xml manipulation, but I have done that with Java (SAX, DOM parsers).
 
  07 July 2009
I browsed around the XSI sdk docs, and I got mildly interested in trying to write this with C# instead. Any pros or cons for the choice of language?

Personally I figured that going with C# might be a good idea because it's closer to Java, which is my main language.

But is it a good choice for writing this kind of importer code for XSI? Would it still be easier with C++ or Python considering XSI?
 
  07 July 2009
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 05:30 AM.


Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.