- Messages
- 496
- Country
I finally figured out a script that creates autogen from the millions of Microsoft building footprints into P3D! I am wondering if anyone has a good script that would work to incorporate variables into the autogen, similar to the impressive results people get from OSM data.
Is it possible to tell ScenProc to use zoning data from OSM or perhaps P3D's population density file and assign the results to my shapefile from the Microsoft data to create taller buildings in urban areas for example?
The script I am using (see below and don't laugh - it's just a trial run) is extremely primitive and looks decent enough, apart for some interesting rows of storage buildings that are two stories high and have very high-pitched roofs. It would be nice to figure out a script that makes large commercial buildings have flat roofs, industrial buildings look like factories and warehouses, etc.
Also, is there any way to take a large waterbody shapefile (from USGS) and use it to create watermasks for the 3.75-minute ortho tiles I am using?
#
ImportOGR|C:\Users\Prepar3D v4 Add-ons\Wild Weasel Missouri\Data\Missouri Buildings.shp|-90;-89;37;38|*|AUTODETECT
#
SplitGrid|AGN|*|*
#
SETAGNBUILDINGHEIGHT|*|0.6;0.3;0.1;0.0
#
CreateAGNGenBuild|FWIDTH<20|{5ae04eb6-934c-4f63-bb48-5e7dee601212}
CreateAGNGenBuild|FWIDTH>20|{f5d3c9b7-59af-4df1-be66-b06933ebd3ba}
#
ExportAGN|P3D v2|C:\Users\Prepar3D v4 Add-ons\Wild Weasel Missouri\Texture
Is it possible to tell ScenProc to use zoning data from OSM or perhaps P3D's population density file and assign the results to my shapefile from the Microsoft data to create taller buildings in urban areas for example?
The script I am using (see below and don't laugh - it's just a trial run) is extremely primitive and looks decent enough, apart for some interesting rows of storage buildings that are two stories high and have very high-pitched roofs. It would be nice to figure out a script that makes large commercial buildings have flat roofs, industrial buildings look like factories and warehouses, etc.
Also, is there any way to take a large waterbody shapefile (from USGS) and use it to create watermasks for the 3.75-minute ortho tiles I am using?
#
ImportOGR|C:\Users\Prepar3D v4 Add-ons\Wild Weasel Missouri\Data\Missouri Buildings.shp|-90;-89;37;38|*|AUTODETECT
#
SplitGrid|AGN|*|*
#
SETAGNBUILDINGHEIGHT|*|0.6;0.3;0.1;0.0
#
CreateAGNGenBuild|FWIDTH<20|{5ae04eb6-934c-4f63-bb48-5e7dee601212}
CreateAGNGenBuild|FWIDTH>20|{f5d3c9b7-59af-4df1-be66-b06933ebd3ba}
#
ExportAGN|P3D v2|C:\Users\Prepar3D v4 Add-ons\Wild Weasel Missouri\Texture