Peer-to-Peer Forum

 

Login Register    
Has anybody used the API to import KML (I’m trying to write a automated converter KML->OpenFlight).
Posted: 13 March 2009 02:00 PM  
Newbie
Rank
Total Posts:  1
Joined  2008-07-10

Can’t seem to figure out from the documentation to work with the mgRegisterImporter
to enable a KML plugin.

Or, if anybody has an alternative/external tool or process that would be fine too.

-sporter

 
Posted: 17 March 2009 04:02 PM   [ # 1 ]  
Moderator
RankRankRankRank
Total Posts:  590
Joined  2008-07-02

Unfortunately, you cannot use mgExportDb to convert to/from KML.  This function can only be used to write older versions of OpenFlight.

The function mgRegisterImporter is used if you want to write a database importer yourself, not if you want to use an existing one.

If you want to write your own KML converter (which I doubt you do) then you would consider mgRegisterImporter.

From a product pov, this functionality is part of Creator, not the OpenFlight API.  The OpenFlight API contains functionality to read/write/edit OpenFlight files, not other formats (like KML, etc).

From a technical pov, this is a Creator plugin that has Creator UI dependencies (e.g. it displays a dialog to let you control the import/exporting) so it would not be easy to make it work outside of the Creator executable.  This is the case with most Creator plugins.  While they contain valuable nuggets of capability, they can only function inside Creator.

 
Posted: 18 March 2009 02:05 PM   [ # 2 ]  
Jr. Member
RankRank
Total Posts:  44
Joined  2007-11-26

sporter what all are you looking to convert google has a lot of features
just a elevation map and photo texture would be do able