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.



Yes I think that would work. I tried using NOT FROMFILE = "include.kml" but it didn't work.



Hi Arno, Downloaded the 14/10 update and while RND is now working I have encountered another issue.
The ReplacePolygonByBuildingRectangles is not assigning the nominated attribute to all the buildings it creates just the 1st one. In my example below, each building should have the attribute "build" with value "multi2". But only the 1st building created has the attribute assigned, with the other having the attribute missing. See attached ExportOGR file (YBB2multi2.txt) showing one building split into 3.
ReplacePolygonByBuildingRectangles|split="*"|0.7;4;4|0.5;2.0;1.0|String;build|multi2
Any attributes created/assigned before this step make it through to all buildings, as do any attributes from OSM.

Hi Arno, I think your 2nd example on page 60 for the AddAttributeIfInside command is missing the INVERSE text.
I have also encountered another problem. I am trying to assign a random building_levels value to those entries with no building_levels, but am getting an error "Error Value type of 'AttributeString' is not assignable to required type of 'AttributeDouble'.

I had a look, but the step is working as expected here. The only situation where the attribute is not added, is when the remaining polygon after splitting a building doesn't qualify as a proper polygon. E.g. when a triangle is left over or so. In that case it is not assigned the attribute as specified in the step, to indicate this is not "valid" output.
The RND function was returning a double value, but you stored it in an attribute of type string. That's where thing went wrong. I have modified the AddAttribute step now so that it stores the value in the type specified and not always as a double. That prevents the error. It will be in the next development release






can someone tell me how to use multiple .TOC files in aerofltFS2 this is my .TFCThis week I was approached by an AeroFly FS 2 user with the question if scenProc could be used to make cultivation (the AeroFly name for autogen) for AeroFly FS 2 as well. Of course this was not the highest priority item on the wishlist to work on, but I liked the challenge and the data structure to write to seemed simple enough. So I sidetracked a bit from what I was actually working on and decided to give it a go.
The fact that I’m writing about it now already indicates that it worked. In the next development release of scenProc you will find support to create cultivation for AeroFly FS 2 as well. You can create plants (trees), buildings and lights.
Section 5.9 of the updated manual shows an example script that can be used for AeroFly FS 2. Using OpenStreetMap data I have scattered trees into forest polygons, placed lights along a road and create houses from buildings that are almost rectangular. Hopefully this sample script should be enough to get you going. If there are any questions or suggestions, just let me know.
![]()
![]()
Continue reading...
