As a follow-up, researching an old post I found here in the forums, I was able to create storage tanks with the following code:
ImportOGR
|B:\CA Data\OSM Data 2023\socal-latest.osm
|*
|building
|NOREPROJ
SplitGrid
|AGN
|*
|building="*"
PolygonToPoint
|building="*" And man_made="storage_tank"
|CENTER
|0.0;0.0
|0.0;0.0
|String;Type
|storage_tank
|hdg
PointToPolygon
|Type="storage_tank"
|25;25
|hdg
|String;Type
|storage_tank
CreateAGNLibObject
|Type="storage_tank"
|{32f3ed34-c508-44c7-b1fe-d9343c68f17b}
ExportAGN
|P3D v4
|B:\Storage Tanks test\texture
They look good, however some are too big. Which leads me to the next couple of questions:
Question 1 - Arno, It appears back in that old post
(
https://www.fsdeveloper.com/forum/threads/creating-storage-tanks-circular-objects.447766/),
you added coding to automatically scale the object… I take it to match the size of the polygon? Did you complete that?
Question 2 – If yes, do I need to use CreateXMLLibObj in order to have the scale adjusted automatically? Not sure how I would create the step?
Question 3 – Would it be possible to have a scenProc step something to the effect of “If radius is >XX meters then use GUID {}” OR if <XX meters use GUID {}, this way to use a selection of different storage tanks?
Question 4 – The .osm files are HUGE! Do you by chance have a tool to break down the osm file into smaller files, like you did with your json splitter?
Hope you had a nice holiday! Oh... your back!
