Where are texture polygon information stored in a package?

Challenge: I would like to write some small scripts on any languages to place multiple objects in regular patterns (solar panels in grids, ruwas markers in lines etc.). I would create part of a scenery configuration file (supposedly XML) by this script. I have done this earlier with scenery elements (solar panels), but now I would like to place texture polygons with this method.

Question: Where does the editor store the polygon information for a scenery?

Background:

I am correcting an existing airport using basic things. I added a polygone to exclude vegetation. It asked for file name and generated the four related (shape) files within the PackageSources/scenery folder where my main scenery xml resides also.

1st strange thing is that I can not see any reference for this vegetation exclusion poly in the main scenery xml file and any coordinates in readable format. Strange, but I can imagine that the builder will find the nexessary info from the 4 shape files.

Then I added several other polygons with textures (not exclusion). The editor did not ask for any file name and I don’t know where the info about those polygons are stored. They do build correctly and visible in the scenery when running the sim. However I can’t see any info about these (in fact any) polygons in the file system. All other elements (including rectangles) can be found with position, name etc in the scenery xml file.

I also can’t rename these polygons in the Scenery Editor. Or in fact I can rename them, but it is not saving these infos. After save and reload, the default names appear: “Polygon (texture)”. For other elements in the Editor I can save the names.

As I can’t find the configuration of any of the polygons in text based config files (or in fact anywhere), I can not write an automation code to place repeated polygon elements into the scenery.

Hi there!

I’m gonna release the tool you are talking about in the near future, (visual application written in VB.net), i"m extensively already used them
For my global sceneries, here Is the one with solar panels

Polygons are not described inside of the xml, they rely on shapes because they Need to be baked in the terrain by internal engine

When saving a polyong several shapes related files are created, like .shp .dbf .prj .shx

I use QGIS to deal with them and be

(The coordinatest are inside the shp file, while the dbf contains the attributes of the polygon, and those attributes are
by the Sim via the .xml related to the polygon)

You can find great informations here:

https://web.archive.org/web/20200831113433/https://docs.takset.net/books/msfs/page/fixing-lake-elevation-data-with-osm-and-heightmaps

2 Likes