90
edits
Portreekid (talk | contribs) |
|||
| Line 132: | Line 132: | ||
:* you might want to set MAX_OBJECTS to a small number (say, 100) for your first try. This will limit the number of buildings parsed, and speed up the whole process. | :* you might want to set MAX_OBJECTS to a small number (say, 100) for your first try. This will limit the number of buildings parsed, and speed up the whole process. | ||
=== Probe elevation === | === Probe elevation === | ||
* probe elevation for | * probe elevation for the region in params.ini: | ||
* Set the ELEV_MODE in params.ini | |||
* ELEV_MODE = Manual | |||
:* run tools.py, this will create a file elev.in. Copy elev.in to $FGDATA/Nasal/ | :* run tools.py, this will create a file elev.in. Copy elev.in to $FGDATA/Nasal/ | ||
:* tools.py will tell you to hide a certain scenery/Objects/... folder, to prevent probing elevation on top of existing objects | :* tools.py will tell you to hide a certain scenery/Objects/... folder, to prevent probing elevation on top of existing objects | ||
:* run FG, open debug->nasal console, enter: elev.get(), press execute. Might take a long time, depending on the area scanned. This will write elevation data to /tmp/elev. | :* run FG, open debug->nasal console, enter: elev.get(), press execute. Might take a long time, depending on the area scanned. This will write elevation data to /tmp/elev.out (which is actually just plain 5 column data: lon,lat,x,y,elevation). Put elev.out into LOWI/ | ||
* ELEV_MODE = Telnet | |||
:* Run setup.py | |||
:* Start FG with the properties service on Port 5501 | |||
:* Run tools.py, this will create a elev.in, start the nasal script and copy the elev.out back to your project directory | |||
* ELEV_MODE = Fgelev | |||
:* Set FG_ELEV to your fgelev executable | |||
:* Set PATH_TO_SCENERY (Missing terrain will result in error message) | |||
:* Run tools.py this will generate the elev.out using fgelev This can take considerable time. | |||
=== Run osm2city === | === Run osm2city === | ||
* run osm2city.py. Parsing OSM data <del>again takes quite looong (10 minutes or more for 50k buildings)</del> is now pretty fast, but the result is cached to file buildings.pkl. Next startup will be <del>much faster if you move buildings.pkl to LOWI/buildings.pkl and</del> even faster if you set USE_PKL = 1. | * run osm2city.py. Parsing OSM data <del>again takes quite looong (10 minutes or more for 50k buildings)</del> is now pretty fast, but the result is cached to file buildings.pkl. Next startup will be <del>much faster if you move buildings.pkl to LOWI/buildings.pkl and</del> even faster if you set USE_PKL = 1. | ||
edits