Osm2city.py: Difference between revisions

Jump to navigation Jump to search
maybe FG_ROOT must be set?
(→‎Probe elevation: fgelev problems note)
(maybe FG_ROOT must be set?)
Line 182: Line 182:
:* Set FG_ELEV to your fgelev executable. For example: FG_ELEV = /usr/local/fg/bin/fgelev or just FG_ELEV = fgelev if fgelev is already in your OS's path.
:* Set FG_ELEV to your fgelev executable. For example: FG_ELEV = /usr/local/fg/bin/fgelev or just FG_ELEV = fgelev if fgelev is already in your OS's path.
:* Set PATH_TO_SCENERY (Missing terrain will result in error message)
:* Set PATH_TO_SCENERY (Missing terrain will result in error message)
:* make sure the environment variable [[$FG ROOT]] points to your FG base path, (e.g. export FG_ROOT=/usr/share/games/flightgear/ on Linux)


* ELEV_MODE = Manual
* ELEV_MODE = Manual
Line 210: Line 211:


Try running fgelev directly:
Try running fgelev directly:
[code]
<syntaxhighlight lang="bash">
/path/to/fgelev --expire 1000 --fg-root $FG_ROOT --fg-scenery $FG_SCENERY
/path/to/fgelev --expire 1000 --fg-root $FG_ROOT --fg-scenery $FG_SCENERY
[code]
</syntaxhighlight>
then enter
then enter
[code]
<syntaxhighlight lang="bash">
0 $lon $lat
0 $lon $lat
[code]
</syntaxhighlight>
where $lon and $lat are coordinates in the area you want to generate. See if it returns a sane value. If it does, double-check PATH_TO_SCENERY.
where $lon and $lat are coordinates in the area you want to generate. See if it returns a sane value. If it does, double-check PATH_TO_SCENERY and $FG_ROOT.


* Buildings/roads have no texture.  
* Buildings/roads have no texture.  
153

edits

Navigation menu