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

Can't filter features

Messages
68
Country
us-rhodeisland
Hi Arno
I am using ScenProc and I have created millions of buildings and vegetation. Wonderful.
I noticed that some trees are on the roads.
I created some telephone poles on the roadside and with the "Filter Feature" trying to remove the trees that around the poles. but in vain.
I have tried for hours and hours every configuration but nothing. I don't know where to place the "Filter Feature" script. Before or after the "LineToPoint"??
Tell me what I am doing wrong
 

Attachments

  • Wales3.txt
    4.6 KB · Views: 124

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,859
Country
netherlands
Hi,

With all those commented out lines, you script is a bit hard to read. Also it seems you are using polygons for your vegetation, so in that case I don't think you want to use the FilterFeatures step, as you don't want to remove the entire forest polygon. You can better use the BooleanFeatures step to cut the road out of your vegetation polygons.

So your script could be something like this (in pseudo code):

Code:
ImportOGR|load your data
#
SplitGrid|AGN
#
LineToPolygon|type="road"|String;type|road_poly
BooleanFeatures|type="forest"|type="road_poly"|DIFFERENCE
LineToPoint|place poles along road
#
CreateAGNPolyVeg
CreateAGNLibObj
CreateAGNGenBuild
 
Messages
68
Country
us-rhodeisland
I tried it but it tells me that the type="forest" in the BooleanFeatures is not a valid.

Anyway I can live with it. I have spend weeks experimenting. I have no idea what I am doing....but I somehow I am getting results..

You wrote "Also it seems you are using polygons for your vegetation". I don't know how else I can do it....

I must be doing something different but wrong. I have tried your code examples from the manual, but I can't get them to work. NONE of them.
So what I am doing I am trying all kinds of different codes until I get results. My France, England and Wales photoscenery looks wonderful
with all kinds of buildings, vegetation and road lights.
I would like to thank you for all your hard work for the FSX bunch. In the past I have used your Model Converter where I converted hundreds of Scetchup buildings
to use in my Greek photoscenery.
Angelo Tassoglou
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,859
Country
netherlands
Hi,

Like I said the code I posted is sample code, it won't work directly in scenproc, but shows you the order of the steps.

Since the exact attributes depend on the data you use, I can't make a script for you that directly works, as I don't know which data you use.
 
Top