kopia lustrzana https://github.com/osm2vectortiles/osm2vectortiles
1.0 KiB
1.0 KiB
| layout | title | published |
|---|---|---|
| page | Create Extracts | true |
Create custom Extract
If you need an extract which is not included on the downloads page{:target="_blank"}, you can simply download the planet file and make your own extract.
Preparation
- Download the planet file{:target="_blank"}
- Get bounding box of your desired extract.{:target="_blank"}
- Install tilelive utility.
npm install -g tilelive
Create Extract
To create an extract the tilelive-copy utility is used. It takes a bounding box and a mbtiles file as input and ouputs the extract.
Replace the bounding box in the following command with your bounding box.
tilelive-copy \
--minzoom=0 --maxzoom=14 \
--bounds="60.403889,29.288333,74.989862,38.5899217" \
world.mbtiles switzerland.mbtiles