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

P3D v5 Processing step: CreateXMLExcludeRectangle

Messages
1,637
Country
unitedstates
My next challenge is to find a way to create airport boundary shapefiles to use them as a mask against vegetation. I did read about the step in the manual:

CreateXMLExcludeRectangle

So like I usually do, I created a very simple script to see if I can get any output whatsoever, or what's going on during the process to study:

ImportBGL|F:\P3Dv5\Scenery\0102\scenery\APX15170.bgl|*|GENERATE_FOOTPRINT
SplitGrid|LOD13|*
CreateXMLExcludeRectangle|*|EXCLUDE_ALL

ExportBGL|P3D v4|CHICO_X23_AM|B:\CHICO\Section_162\Masks Airport
ExportOGR|FTYPE="POLYGON"|ESRI Shapefile|B:\CHICO\Section_162\Airport BGLs|CHICO_X23_APP


This one was loaded with errors. I could not find a single post regarding this step in the forums. Does this step work? Maybe my script is so bad?

Error messages.jpg


Error messages002.jpg


Error messages003.jpg
 
i think you're making it more complicated than it needs to be,
if you want to exclude just add a filter rule just like you did here
 
I'm sure I agree. I think the issue is finding that filter. That's why I just tried "*" to see would give me any hints. How does P3D define the name of the airport boundary or tarmac? Mmmm... maybe it is Aiport Boundary Polygon. I keep reading this word tossed around. Might have to see if I need to de-compile an airport file (bgl? or what the other airprot files are.)
 
Hi,

The ImportBGL step only reads object placement information from the BGL file. So you will only get point features from it, not the airport background polygons.

The errors are because when creating an exclusion rectangle from a point feature the min and max latitude and longitude values are the same and that is not valid.
 
Gotcha... so what it is used for is different than what I thought. Well, that will save me time trying to explore this way. Researching a 2nd method that does not involve scenProc.

So I guess that raises a question for me, why call it 'CreateXMLExcludeRectangle'? Why not CreateXMLExcludePoint? Where is the rectangle created/introduced?
 
Last edited:
You should feed the step with polygon features instead, then it will create rectangles. So you are feeding it with the wrong feature type.
 
If I could do that I would not need the step. If I feed it with the Airport Boundary Polygon I could just use that as a mask already and not have the need to create an exclude rectangle. I was assuming the step grabbed the ABP and made an exclusion from that. I think the airport boundary is in a cvx file (can't recall off the top of my head), but I don't think scenProc can import that type of file?

Not too worried as I will look into my other method.
 
No, scenProc can't import terrain vectors at the moment. If I have a lot of time to kill it's something I would like to add in the future, but that won't be very soon :)

There are other tools that you can use the extract the airport polygons and turn them into SHP files. I forgot the name of it though.
 
Back
Top