Howto:Use Terragear on Windows: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 39: Line 39:


Right, that's the airports sorted out.  
Right, that's the airports sorted out.  
==Land use==
You now need to decode these into TerraGear format. This is done with the shape-decode command. There are three important command-line arguments to shape-decode:
* the filename of the shapefile (without the .shp extension) you want to decode
* the directory you want to write the data to
* the material type to use.
Each of the shapefiles maps onto one of the material types defined in your materials.xml files. The mapping is pretty obvious, e.g. v0_mixedcroppasturecover maps to MixedCropPastureCover. Note that the material types are case-sensitive, so it is a good idea to have your materials.xml file to hand so you can check. The exception is v0_landmass, which MUST be mapped onto the type Default.
Additionally, there are a number of optional arguments, to indicate the width of line data (for roads, streams, railways), how large to make point data (for towns) and how long the longest straight line is allowed to be.
C:\Users\AS9423-ULT\Desktop\Terragear\shape-decode.exe --line-width 10 --continue-on-errors --max-segment 1000
osm_rail C:\Users\AS9423-ULT\Desktop\Amsterdam\work\osm_rail Railroad
C:\Users\AS9423-ULT\Desktop\Terragear\shape-decode.exe --line-width 25 --continue-on-errors --max-segment 1000
osm_motorway C:\Users\AS9423-ULT\Desktop\Amsterdam\work\osm_motorway Freeway


==Related content==
==Related content==

Navigation menu