Osm2city.py Batch

From FlightGear wiki
Revision as of 06:57, 21 May 2014 by Portree Kid (talk | contribs)
Jump to navigation Jump to search
Autogen Scenery
Started in 11/2013
Description Improved autogen support for FlightGear using OSM data
Contributor(s) radi, vanosten, Soitanen, portreekid
Status Under active development as of 02/2016
Topic branches:
$FG_SRC https://gitlab.com/osm2city/osm2city/
fgdata https://gitlab.com/osm2city/osm2city-data/

Osm2city can now be used to create complete tiles. It simplifies the usage of the osm2city.py toolchain. Currently it is tested for windows, but is planned to be portable.

Features

  • Building of tile directories. Done Done
  • Generation of elevation map. 30}% completed
  • Generation of download batch. Done Done
  • Generation of osm2city batch. Done Done
  • Generation of osm2pylons batch. Not done Not done

Workflow

Setup.py

Adapt params.ini

Since the next step distributes the params.ini to several subdirectories it is advisable to edit the template params.ini

build-tiles.py

This step copies the params.ini and adds the tilename as a PREFIX.

-- Scenery folder (typically a geographic name or the ICAO code of the airport<BR>
PREFIX = w010n50/w006n55

tools[ew]XXX[ns][YY].[sh|cmd]

Generated by build-tiles.py and contains the calls to all subdirectories of the tile [ew]XXX[ns][YY].

downloadXXXX.[sh|cmd]

Generated by build-tiles.py and contains wget calls to download all the subtiles of [ew]XXX[ns][YY] into the subdirectories.

osm2cityXXXX.[sh|cmd]

Generated by build-tiles.py and contains the calls to all subdirectories of the tile [ew]XXX[ns][YY].