• 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.

MSFS20 MSFS car parks

Messages
41
Country
france
Good day Arno;
Msfs sdk add carp parks as polygons; can sceneproc do the same by using a shapefile ?
 
Hi,

At the moment not. As the MSFS never documented a terrain vector feature I did not bother to add any MSFS polygon output to scenproc.

But the kind of polygons you mention here might be worthwhile to add to scenproc in the future.
 
You may be able to acquire car parks as a polygon through OpenStreetMap. I have been able to get this data on several objects this way.
 
You may be able to acquire car parks as a polygon through OpenStreetMap. I have been able to get this data on several objects this way.
Indeed; issue is shapefiles can not be translated into msfs format for car parks; unless done by hands via the sdk each single space.
thanks for your time Clutch Cargo.
 
But i think MSFS still uses shape files in the background as well. I would have to look ar this. Anybody would have a small sample project that places a few car parks to look at?
 
Yes; polygons can be saved as shape; however car parks not; having said that is not important; what need is theconvertion of shapefiles polygons into car parking xml (the header is different) ; here is the example how the sdk deal with car parking; and polygons; the head is completely different from each other;

<?xml version="1.0"?>
<FSData version="9.0">
<SceneryObject lat="52.32753597320423" lon="4.70079436700259" alt="0.00000000000000" pitch="0.000000" bank="0.000000" heading="0.000000" imageComplexity="VERY_SPARSE" altitudeIsAgl="TRUE" snapToGround="TRUE" snapToNormal="FALSE">
<CarParking>
<Vertex lat="52.32933256171504" lon="4.69979836701920"/>
<Vertex lat="52.32768197742634" lon="4.69710724708902"/>
<Vertex lat="52.32578560400448" lon="4.70098322151383"/>
<Vertex lat="52.32785782878169" lon="4.70298820463969"/>
</CarParking>

</SceneryObject>
<Polygon groupIndex="1" altitude="-4.22471911793224">
<Attribute name="UniqueGUID" guid="{359C73E8-06BE-4FB2-ABCB-EC942F7761D0}" type="GUID" value="{843743E4-F6E6-4002-93FD-EA4393198EB8}"/>
<Vertex lat="52.32963642481664" lon="4.69919067871542"/>
<Vertex lat="52.33175300369013" lon="4.69515813726099"/>
<Vertex lat="52.33011525989267" lon="4.69280004676580"/>
<Vertex lat="52.32785903137299" lon="4.69699011792312"/>
</Polygon>
</FSData>


car parking look like a 'vector object'.

attached original

this add a car parking area and a polygon just west of Schiphol 36L runway

 

Attachments

  • Car_Parking_TEST.zip
    15.3 KB · Views: 85
Last edited:
That should be quite easy to add. It seems similar to exclude polygons. Is there a list of the GUID values used for the polygon? I assume that specifies the type of polygon.
 
That should be quite easy to add. It seems similar to exclude polygons. Is there a list of the GUID values used for the polygon? I assume that specifies the type of polygon.

not sure a list of polygons exist; checking the sdk it seem that

unique Guid is always the same number and Guid value is randomly assigned to each polygons; and each time is different.
<?xml version="1.0"?>
<FSData version="9.0">
<Polygon altitude="-4.14190082091896">
<Attribute name="UniqueGUID" guid="{359C73E8-06BE-4FB2-ABCB-EC942F7761D0}" type="GUID" value="{02977D4F-48DF-4930-9E93-8CB0E8F67CE6}"/>
<Vertex lat="52.33590219407801" lon="4.68905102352151"/>
<Vertex lat="52.32732106855860" lon="4.69196234462751"/>
<Vertex lat="52.32612534848239" lon="4.70511285144560"/>
<Vertex lat="52.33416830027050" lon="4.70439980729368"/>
</Polygon>
</FSData>
 
Ah, now I see. But what kind of polygon does this create then? A polygn does not really say a lot. Is it s a flatten or an exclude or ....
 
I have coded the car parking now (writing it to the XML file, reading it from the BGL file, new scenProc step). Once it is clear what to do with the other polygon I can move it to the development release.
 
Good day Arno; and sure thanks for your time.
The other polygons; was just an example; to show you the difference between 'car parks' and 'polygons' xml format used by msfs sdk.

a car park xml file just look like this:

<?xml version="1.0"?>
<FSData version="9.0">
<SceneryObject lat="52.32753597320423" lon="4.70079436700259" alt="0.00000000000000" pitch="0.000000" bank="0.000000" heading="0.000000" imageComplexity="VERY_SPARSE" altitudeIsAgl="TRUE" snapToGround="TRUE" snapToNormal="FALSE">
<CarParking>
<Vertex lat="52.32933256171504" lon="4.69979836701920"/>
<Vertex lat="52.32768197742634" lon="4.69710724708902"/>
<Vertex lat="52.32578560400448" lon="4.70098322151383"/>
<Vertex lat="52.32785782878169" lon="4.70298820463969"/>
</CarParking>
</SceneryObject>
</FSData>

end of; nothing else ; the question here is; can you with your magic; enable sceneproc to load a shapefile of car parks data; like for example osm datas; and write the xml file as above for each of the areas in the shapefile.

After that it can be compiled with the sdk; as normal.
 
Yes, I have just coded making the car parking xml from vector data loaded in scenproc.

So the other type of polygon is not needed as a separate step?
 
Ok, then I'll update the manual and move this feature to the development release.
 
The new step is called CreateXMLCarParking. And you need to use the ExportMSFS to write the package files that includes the XML file.
 
Back
Top