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.
So I sort of got it to work, is there any way I can adjust the size of the tanks to better fit the size in the image?If placing them as BGL files the suggestion from Matthias is probably the best way.
But if you want to place them as autogen library objects you can use probably use the existing polygon as input for the CreateAGNLibObject step.
Hi,Hi,
There are two options to do that. One is to use the AddAttributeIfInside step to add an attribute to all buildings that are inside an industrial polygon. You can then use this attribute to exclude them.
Another option is to use the FilterFeatures step and filter out the building polygons that are inside the industrial polygon (in that case they are removed and you can't use them anymore for something else either).
One is to use the AddAttributeIfInside step to add an attribute to all buildings that are inside an industrial polygon. You can then use this attribute to exclude them.
I appreciate that, thank youHi,
I'll try to make a small example script tonight.
I should probably modify scenproc to calculate that scale automatically .
CreateXMLLibObj|man_made="storage_tank"|8aaabdf2-4496-483a-8df1-86ea13aa950d|0|0|0|FLENGTH/20
Another question for you when you get chance, I thought it was easier to keep it in the same thread.
I've been trying to create Library objects for things such as castles, churches etc.
Scenproc appears to create the objects but then I don't see any of the objects in the sim?
Have attached the test config I used to create them.
Hi,
In the log file you can see that there are only 8 library objects being created in an area of 200 cells. This probably means you need to look in very specific places to see the library objects, as there are very few only.
Also are you sure you have entered a valid GUID of a autogen library class in the script?
I'll try to make a small example script tonight.
I downloaded OSM data for just a very small area in portugal near Faro, just for one village which had these features in order to test it.
Here are the GUIDs I used:
This is brilliant, I really cannot thank you enough for doing this. Thank you so much for your help, it's really appreciated.Hi,
Here are some samples of how to filter. First I made a very simple script which loads some OSM data and makes buildings out of each building feature in the OSM data (this includes towns, but also storage tanks). You can see 2086 buildings were made.
View attachment 58599
One easy way to prevent buildings being made for the storage tanks is to just exclude them in the filter, like I do here. That way only 1968 buildings are being made instead.
View attachment 58600
But I know this is not what you asked, as you wanted to filter on industrial areas. So the first approach is to use the AddAttributeIfInside step. You can add an attribute to each building that is inside an industrial landuse. In used the attribute isIndus="yes" here, but you can name it whatever you like. In the step that makes the buildings I then exclude the features that have isIndus="yes". With this you see only 1802 buildings are made.
View attachment 58601
The last option is to use the FilterFeatures step. In this case I remove any building feature of which the center is inside an industrial landuse polygon. In the step to create the buildings I don't have to exclude any features anymore, as they were removed already. Once again 1802 buildings were made for this test area.
View attachment 58602
I hope these samples help you a bit.