• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSX KML --> FSX Object Placement XML

hcornea

Resource contributor
Messages
2,388
Country
australia
Has anyone created a tool to convert a kml file with numerous object coordinates into an FSX-ready placement XML file?

As a non-programmer, it seems that it would not be too hard, given both formats are xml based, and both are in WGS84

Anyone had a go at this fairly obvious application?

I guess it would be similar to Sceneproc but for object placement, rather than autogen.

The idea would be to create the en-mass placement xml, then edit the positions manually later using a tool (like Instant Scenery 2)
 
Hi Ian,

Have you ever done anything with macros using an advanced text editor? I'm thinking Textpad could do that task fairly easily, i.e. find "<coordinates>", select to next comma in the kml, copy, switch documents to a preformatted placement XML, find "longitude", paste, return to the kml, select next 8 characters (lat), copy, paste into plc XML etc. It usually takes a few tries to get the macro working correctly but once it works just "repeat to end of file" and let it go to work.

Notepad++ also has macro functions but I've never been able to switch back & forth between 2 documents reliably, probably operator error, lol. I use an old version of Textpad, I guess it's whatever you get used to but it can do some amazing tasks with text.

Jim
 
It's a good thought Jim.

I should upgrade my Editpad Lite, and learn how to use the replace routines.
 
Hi Ian,

At the moment modelconverterx can read a single placement from KML files, but I can probably extend it to multiple quite easily.

The biggest problem will be to know which guid to assign to the different models. Or do you want them all with the same guid?
 
All with the same GUID would be a step forward.

I guess the "ideal" would be to read descriptors in the kml file, and offer a choice of GUID to select for each individual one. That sounds like a lot of work, however.
 
Ok, yes ideally you would like to choose from object libraries which objects to use. I'll see if I can add a quick function to modelconverterx.
 
And what about FsxKml tool ? and following the thread, some tool with which you can change the guids in those xml files.? batch convert style of course
 
Last edited:
FSX_KML is only for vector data (ie lines and polygons) as far as I am aware.
 
Back
Top