From 5725d36d16f40c755e4a856bb969448fa23b0370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20=C5=BDdila?= Date: Sat, 9 Dec 2023 01:10:20 +0100 Subject: [PATCH] slowly expanding to the europe --- doc/INSTALL.md | 10 +- limit-europe.geojson | 561 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 564 insertions(+), 7 deletions(-) create mode 100644 limit-europe.geojson diff --git a/doc/INSTALL.md b/doc/INSTALL.md index 55f25da..d507ff6 100644 --- a/doc/INSTALL.md +++ b/doc/INSTALL.md @@ -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 @@ -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 ``` diff --git a/limit-europe.geojson b/limit-europe.geojson new file mode 100644 index 0000000..71e771b --- /dev/null +++ b/limit-europe.geojson @@ -0,0 +1,561 @@ +{ + "type": "FeatureCollection", + "generator": "JOSM", + "features": [ + { + "type": "Feature", + "properties": { + "type": "multipolygon" + }, + "geometry": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ + -15.64732709375, + 71.63461381454 + ], + [ + -34.14139750000, + 64.29462876064 + ], + [ + -34.08948312500, + 29.35268413409 + ], + [ + -15.05676557813, + 29.34866573797 + ], + [ + -10.67687882813, + 35.88802252369 + ], + [ + -5.65332900000, + 35.89458000000 + ], + [ + -5.40104400000, + 35.93719000000 + ], + [ + -5.37700200000, + 35.87962000000 + ], + [ + -5.34507300000, + 35.86568000000 + ], + [ + -5.26109700000, + 35.76039000000 + ], + [ + -5.00172700000, + 35.73424000000 + ], + [ + -3.10529300000, + 35.43262100000 + ], + [ + -2.92247400000, + 35.47214100000 + ], + [ + -2.91423500000, + 35.35350200000 + ], + [ + -2.94633500000, + 35.32465600000 + ], + [ + -2.96384500000, + 35.31681200000 + ], + [ + -2.97036800000, + 35.30084300000 + ], + [ + -2.97242800000, + 35.28543000000 + ], + [ + -2.95148500000, + 35.26328800000 + ], + [ + -2.92985600000, + 35.26917400000 + ], + [ + -2.91286100000, + 35.28711200000 + ], + [ + -2.15952900000, + 35.77980300000 + ], + [ + 3.53560883594, + 37.85095281126 + ], + [ + 11.59467407227, + 37.85372947174 + ], + [ + 11.59562000000, + 35.53805000000 + ], + [ + 13.09079062500, + 33.43342713422 + ], + [ + 21.79686401367, + 33.44978574977 + ], + [ + 28.38864990234, + 32.02672492177 + ], + [ + 34.04054296875, + 32.08171889034 + ], + [ + 35.26666000000, + 35.62579000000 + ], + [ + 36.23694000000, + 35.80641000000 + ], + [ + 36.76862000000, + 36.19530000000 + ], + [ + 36.75406000000, + 36.57056000000 + ], + [ + 39.64272000000, + 36.64706000000 + ], + [ + 40.84017000000, + 37.09256000000 + ], + [ + 41.28895000000, + 37.02624000000 + ], + [ + 42.39857000000, + 37.05453000000 + ], + [ + 43.27242000000, + 37.24267000000 + ], + [ + 44.32863000000, + 36.91490000000 + ], + [ + 44.99693000000, + 37.19937000000 + ], + [ + 44.51902000000, + 38.64945000000 + ], + [ + 44.18354000000, + 39.27688000000 + ], + [ + 44.87971000000, + 39.64022000000 + ], + [ + 44.50794000000, + 40.07579000000 + ], + [ + 43.98160000000, + 40.16476000000 + ], + [ + 43.75998000000, + 41.03971000000 + ], + [ + 44.85145000000, + 41.06895000000 + ], + [ + 44.99714000000, + 41.26553000000 + ], + [ + 45.03948000000, + 41.28940000000 + ], + [ + 45.13693000000, + 41.34945000000 + ], + [ + 45.18190000000, + 41.40194000000 + ], + [ + 45.25686000000, + 41.43192000000 + ], + [ + 45.31682000000, + 41.44691000000 + ], + [ + 45.37179000000, + 41.41506000000 + ], + [ + 45.44924000000, + 41.40569000000 + ], + [ + 45.60915000000, + 41.34194000000 + ], + [ + 45.69410000000, + 41.34007000000 + ], + [ + 45.68410000000, + 41.29128000000 + ], + [ + 45.72658000000, + 41.23493000000 + ], + [ + 45.88399000000, + 41.17854000000 + ], + [ + 46.00642000000, + 41.16161000000 + ], + [ + 46.11135000000, + 41.16161000000 + ], + [ + 46.19630000000, + 41.17478000000 + ], + [ + 46.28875000000, + 41.16726000000 + ], + [ + 46.33622000000, + 41.12210000000 + ], + [ + 46.37620000000, + 41.08068000000 + ], + [ + 46.44616000000, + 41.06373000000 + ], + [ + 46.49363000000, + 41.04677000000 + ], + [ + 46.65354000000, + 41.09198000000 + ], + [ + 46.67852000000, + 41.16349000000 + ], + [ + 46.75348000000, + 41.29315000000 + ], + [ + 46.63605000000, + 41.40007000000 + ], + [ + 46.44366000000, + 41.46563000000 + ], + [ + 46.34622000000, + 41.53861000000 + ], + [ + 46.35871000000, + 41.59656000000 + ], + [ + 46.28625000000, + 41.63765000000 + ], + [ + 46.24128000000, + 41.65259000000 + ], + [ + 46.21879000000, + 41.70484000000 + ], + [ + 46.25877000000, + 41.74587000000 + ], + [ + 46.31873000000, + 41.76078000000 + ], + [ + 46.38869000000, + 41.81853000000 + ], + [ + 46.42367000000, + 41.86320000000 + ], + [ + 46.43616000000, + 41.91156000000 + ], + [ + 46.42117000000, + 41.94874000000 + ], + [ + 46.33872000000, + 41.96546000000 + ], + [ + 46.26626000000, + 42.01931000000 + ], + [ + 46.18131000000, + 42.03045000000 + ], + [ + 46.10386000000, + 42.04344000000 + ], + [ + 45.98893000000, + 42.06014000000 + ], + [ + 45.92396000000, + 42.10093000000 + ], + [ + 45.86650000000, + 42.13244000000 + ], + [ + 45.80154000000, + 42.13800000000 + ], + [ + 45.72658000000, + 42.17875000000 + ], + [ + 45.65912000000, + 42.21392000000 + ], + [ + 45.65412000000, + 42.25831000000 + ], + [ + 45.71659000000, + 42.26941000000 + ], + [ + 45.77405000000, + 42.28420000000 + ], + [ + 45.78654000000, + 42.32670000000 + ], + [ + 45.76656000000, + 42.36363000000 + ], + [ + 45.78155000000, + 42.42083000000 + ], + [ + 45.80154000000, + 42.46693000000 + ], + [ + 45.79154000000, + 42.49825000000 + ], + [ + 45.70159000000, + 42.51299000000 + ], + [ + 45.61664000000, + 42.54429000000 + ], + [ + 45.56917000000, + 42.55533000000 + ], + [ + 45.44924000000, + 42.55902000000 + ], + [ + 45.36179000000, + 42.55717000000 + ], + [ + 45.32931000000, + 42.59213000000 + ], + [ + 45.24186000000, + 42.67669000000 + ], + [ + 45.16941000000, + 42.71892000000 + ], + [ + 45.07696000000, + 42.74462000000 + ], + [ + 44.99722000000, + 42.75437000000 + ], + [ + 42.74779174805, + 43.40505546959 + ], + [ + 40.04515502930, + 43.84245909085 + ], + [ + 39.28709838867, + 43.21319130770 + ], + [ + 37.12005340576, + 44.53567649021 + ], + [ + 37.05687377930, + 46.49083658358 + ], + [ + 40.59997009277, + 47.49494021660 + ], + [ + 40.59447143555, + 49.83798953873 + ], + [ + 35.94725463867, + 50.97227180742 + ], + [ + 31.67906616211, + 54.66748419457 + ], + [ + 31.35495849609, + 55.87532316226 + ], + [ + 28.65232177734, + 56.35308978833 + ], + [ + 27.75144287109, + 58.73401617150 + ], + [ + 28.65232177734, + 59.33320063363 + ], + [ + 28.64133544922, + 60.44097337486 + ], + [ + 32.27778808594, + 62.80499863306 + ], + [ + 30.60788818359, + 64.75539922625 + ], + [ + 30.54194824219, + 67.65940307423 + ], + [ + 29.35542480469, + 68.75233087014 + ], + [ + 31.77241699219, + 69.58057882432 + ], + [ + 32.47541015625, + 70.74353576362 + ], + [ + 28.08101074219, + 71.63600672840 + ], + [ + 22.28022949219, + 71.63600672840 + ], + [ + -15.64732709375, + 71.63461381454 + ] + ] + ] + ] + } + } + ] +} \ No newline at end of file