Osm2city.py: Difference between revisions

Jump to navigation Jump to search
m
refer win install to install
m (refer win install to install)
Line 117: Line 117:


== Install ==
== Install ==
* dependencies: Install the following packages (names from Debian packages):
1. dependencies: Install the following packages (names from Debian packages):
   python-numpy python-shapely python-matplotlib python-scipy python-pil python-networkx
   python-numpy python-shapely python-matplotlib python-scipy python-pil python-networkx
 
2. get [https://gitorious.org/fg-radi/osm2city osm2city] and [https://gitorious.org/fg-radi/osm2city-data osm2city-data] from gitorious
* get [https://gitorious.org/fg-radi/osm2city osm2city] and [https://gitorious.org/fg-radi/osm2city-data osm2city-data] from gitorious
3. add the directory with osm2city modules to your [http://docs.python.org/2/using/cmdline.html#envvar-PYTHONPATH PYTHONPATH] (unless your PYTHONPATH already contains . (the dot))
* add the directory with osm2city modules to your [http://docs.python.org/2/using/cmdline.html#envvar-PYTHONPATH PYTHONPATH] (unless your PYTHONPATH already contains . (the dot))
4. link osm2city-data/tex and osm2city-data/tex.src into osm2city/
* link osm2city-data/tex and osm2city-data/tex.src into osm2city/
 
If you're running FG < 3.2, or git older than 10 Oct 2014, or have less than 4 GB RAM, you will most likely need to use the old-fashioned way of elevation probing, which requires you to  
If you're running FG < 3.2, or git older than 10 Oct 2014, or have less than 4 GB RAM, you will most likely need to use the old-fashioned way of elevation probing, which requires you to  
* copy elev.nas to $FGDATA/Nasal/
5. copy elev.nas to $FGDATA/Nasal/
* Change the in variable of elev.nas to match the elev.in file e.g. $FG_DATA/Nasal/elev.in
6. Change the in variable of elev.nas to match the elev.in file e.g. $FG_DATA/Nasal/elev.in
* Change the out variable of elev.nas to the export directory with a filename with write access (e.g. $FG_HOME/Export). See [[IORules]] and [[$FG_HOME]]
7. Change the out variable of elev.nas to the export directory with a filename with write access (e.g. $FG_HOME/Export). See [[IORules]] and [[$FG_HOME]]


== Install on Windows ==
== Install on Windows ==
Line 136: Line 134:
{{warning|Python 2.?? is recommended unless your an experienced Python developer willing to update the Python scripts to support Python 3. Also pay attention to versions and cpu builds of the below helper files. Make sure they match your OS build and Python version.}}  
{{warning|Python 2.?? is recommended unless your an experienced Python developer willing to update the Python scripts to support Python 3. Also pay attention to versions and cpu builds of the below helper files. Make sure they match your OS build and Python version.}}  


Install the following packages.
Install the following packages, then proceed with step 2 above.


http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
153

edits

Navigation menu