New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve documentation for outsiders #44

merged 1 commit into from Jan 3, 2019
File filter...
Filter file types
Jump to file or symbol
Failed to load files and symbols.
+32 −8
Diff settings


Just for now

Copy path View file
@@ -1,9 +1,22 @@
# Configuration files for kartotherian stack

## Cloning this repository

Make sure to clone the submodules as well

git clone --recurse-submodules

## import_data

This folder contains all the scripts and details to import OSM (and Natural
Earth) data into a PostgreSQL database.

## Imposm

* `imposm3_mapping.yml` : Imposm mapping (based on openmaptiles)
* `generated_sql.sql` : SQL views, functions and triggers used by vector style
* `generated_mapping_{base,poi}.yml` : Imposm mapping (based on openmaptiles) for basemap and POIs
* `generated_{base,poi}.sql` : SQL views, functions and triggers used by vector style

## Tilerator

Copy path View file
@@ -7,8 +7,8 @@ pg:
password: gis
port: 5432

main_dir: /srv/import_data
sql_dir: /srv/import_data/sql
main_dir: ../imposm
sql_dir: ../imposm

generated_files_dir: /data/imposm
data_dir: /data
Copy path View file
@@ -18,6 +18,9 @@ or to use an already downloaded file:

`INVOKE_OSM_FILE=path_to_an_osm_file pipenv run invoke`

Generated data will be stored in a `/data` folder so you should make sure this
folder exists and is writable prior to running the import.

the osm file can also be put in a `invoke.yaml` file.

@@ -29,3 +32,5 @@ eg.
`INVOKE_OSM_FILE=path_to_an_osm_file pipenv run invoke load-poi`

Note: be careful to replace `_` with `-` in the function name

Note: the `pipenv` command should be ran from the `import_data` folder.
Copy path View file
@@ -157,8 +157,8 @@ def _run_sql_script(ctx, script_name):
def run_sql_script(ctx):
# load several psql functions
_run_sql_script(ctx, "language.sql")
_run_sql_script(ctx, "postgis-vt-util.sql")
_run_sql_script(ctx, "../external_dependencies/import-sql/language.sql")
_run_sql_script(ctx, "../external_dependencies/postgis-vt-util/postgis-vt-util.sql")

@@ -207,7 +207,7 @@ def import_water_polygon(ctx):

@@ -250,7 +250,7 @@ def import_border(ctx):

Copy path View file
@@ -0,0 +1,6 @@
# Tilerator

This is the tilerator configuration. Prior to using it, you should:

* Check and update your PostgreSQL credentials in the `data_tm2source_*.yml` files.
* Update the paths to YAML files in the `sources.yaml` file.
ProTip! Use n and p to navigate between commits in a pull request.