Skip to content

Commit

Permalink
slowly expanding to the europe
Browse files Browse the repository at this point in the history
  • Loading branch information
zdila committed Dec 9, 2023
1 parent d1ddd1f commit 5725d36
Show file tree
Hide file tree
Showing 2 changed files with 564 additions and 7 deletions.
10 changes: 3 additions & 7 deletions doc/INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,6 @@ and then execute the commands [here](https://github.com/omniscale/imposm3/#compi
Follow these steps also after database reimport, which is required if you've updated `mapping.yaml`:

1. Download `europe-latest.osm.pbf` from Geofabrik
1. Extract area of focus with Osmium:
```bash
osmium extract -p limit.geojson -s smart -S types=multipolygon,route,boundary europe-latest.osm.pbf -o extract.pbf
```
1. Stop imposm service
```bash
systemctl stop imposm3
Expand All @@ -101,11 +97,11 @@ Follow these steps also after database reimport, which is required if you've upd
```bash
git pull && npm run build
```
1. Import the extract:
1. Import:
```bash
imposm import -connection postgis://freemap:freemap@localhost/freemap -mapping mapping.yaml -read extract.pbf -diff -write -cachedir ./cache -diffdir ./diff -overwritecache
imposm import -connection postgis://freemap:freemap@localhost/freemap -mapping mapping.yaml -read europe-latest.osm.pbf -diff -write -cachedir ./cache -diffdir ./diff -overwritecache -limitto limit-europe.geojson -limittocachebuffer 10000 -optimize
```
1. Delete pbf files
1. Delete pbf file
```bash
rm europe-latest.osm.pbf extract.pbf
```
Expand Down
Loading

0 comments on commit 5725d36

Please sign in to comment.