No description
Find a file
merspieler 083762a38a renamed build -> build_tile and added bounds overwrite
Signed-off-by: merspieler <merspieler@airmail.cc>
2019-03-14 03:04:36 +00:00
sql Initial commit 2018-11-18 15:00:00 +01:00
.gitignore Added entry to .gitignore 2018-11-18 15:00:47 +01:00
build Added option -z for automatic zip file generation to build script 2019-03-04 09:45:14 +01:00
build_tile renamed build -> build_tile and added bounds overwrite 2019-03-14 03:04:36 +00:00
clear-cache-files Mandatory arguments don't need a parameter anymore 2019-02-28 22:23:19 +00:00
create-db Mandatory arguments don't need a parameter anymore 2019-02-28 22:23:19 +00:00
create-project Mandatory arguments don't need a parameter anymore 2019-02-28 22:23:19 +00:00
create-venv Updated dependencies 2019-02-28 06:03:00 +01:00
edit-settings Mandatory arguments don't need a parameter anymore 2019-02-28 22:23:19 +00:00
general-settings.template Added license header to all files 2018-11-21 21:17:10 +01:00
index-db Mandatory arguments don't need a parameter anymore 2019-02-28 22:23:19 +00:00
install Added create-venv call to install script 2019-02-28 22:25:48 +00:00
LICENSE Added LICENSE 2018-11-18 18:17:50 +00:00
parameters Renamed descriptions to parameters and made it in json format. Contains all parameter data now 2018-11-21 20:35:00 +01:00
read-pbf Mandatory arguments don't need a parameter anymore 2019-02-28 22:23:19 +00:00
README.md Mandatory arguments don't need a parameter anymore 2019-02-28 22:23:19 +00:00
update-programs Added contact details to license headers 2018-11-24 15:23:45 +00:00

easy-osm2city

And wrapper around osm2city inspired by easy-rsa.

Usage

Getting started

  • Clone the repo (or download the as zip/tar file and unpack it).
  • Then go into the directory, run ./install and follow the instructions.
  • Run ./create-venv. This will create a virtual environment and installs all needed python packages.
  • Create a database using ./create-db <database>.
  • Download the .pbf file for the area you want to build and put it into the pbf directory.
    I recommend to download from GeoFabrik.
  • Read the .pbf file into the database by running ./read-pbf <database> <pbf-file>
  • If you want to speed up further opperation on the database, index it by running ./index-db <database>.
    I highly recommend to do so.
  • Next step is to create a project by running ./create-project <project> and following the instructions.
  • Now you can build your first scenery by running ./build project. You will find the scenery under projects/<your-project>/scenery.
  • If you don't know, what a program does, simply run it with the -h parameter to get help.

Other programs

Programs that were not covered by Getting started:

  • update-programs: Will update easy-osm2city, osm2city it self and osm2city-data
  • clear-cache-files <project>: Will delete cache files created by osm2city.
  • edit-settings <project>: Is a simple way to edit your params.inifile (which is used by osm2city to know what and how to generate the scenery).
    It will make sure, that everything is in the correct format and in the correct datatype.