2018-11-18 18:02:56 +00:00
# easy-osm2city
And wrapper around [osm2city ](https://gitlab.com/fg-radi/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.
2019-02-28 22:23:19 +00:00
* Create a database using `./create-db <database>` .
2018-11-18 18:02:56 +00:00
* Download the .pbf file for the area you want to build and put it into the `pbf` directory.
I recommend to download from [GeoFabrik ](http://download.geofabrik.de/ ).
2019-02-28 22:23:19 +00:00
* 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>` .
2018-11-18 18:02:56 +00:00
I highly recommend to do so.
2019-02-28 22:23:19 +00:00
* 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` .
2018-11-18 18:02:56 +00:00
* 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
2019-02-28 22:23:19 +00:00
* `clear-cache-files <project>` : Will delete cache files created by osm2city.
2019-03-14 14:46:15 +00:00
* `./create-venv` . This will create a virtual environment and installs all needed python packages. NOTE: This is run for you by the installer.
2019-02-28 22:23:19 +00:00
* `edit-settings <project>` : Is a simple way to edit your `params.ini` file (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.
2019-03-19 03:27:43 +00:00
* `./delete-db <database>` : Deletes the database.
2019-03-25 01:11:37 +00:00
## User scripts
User scripts in the `scripts/` directory are help scripts contributed by users. They Do not belong to the easy-osm2city concept but extend it. Use only if you know what you do.