kopia lustrzana https://github.com/osm2vectortiles/osm2vectortiles
Add USAGE document
rodzic
f60a09b918
commit
ccc1d01a3b
|
@ -10,14 +10,20 @@ This is the easiest way how to switch to OSM thanks to [MapBox](https://github.c
|
|||
|
||||
## Docs
|
||||
|
||||
The following tutorials are targeted at users of the OSM2VectorTiles project.
|
||||
|
||||
- **[Getting Started](http://osm2vectortiles.org/docs/getting-started/):** Quickly get started using OSM2VectorTiles to display maps in your browser. This tutorial explains how to serve downloaded Vector Tiles and use them in your browser.
|
||||
- **[Create new Mapbox GL style](http://osm2vectortiles.org/docs/create-map-with-mapbox-studio/):** Design beautiful maps with the new Mapbox Studio and use them together with osm2vectortiles.
|
||||
- **[Create new Mapbox GL style](http://osm2vectortiles.org/docs/create-map-with-mapbox-studio/):** Design beautiful maps with the new Mapbox Studio and use them together with osm2vectortiles.
|
||||
|
||||
## Downloads
|
||||
|
||||
Download the entire world, city or country extracts from http://osm2vectortiles.org/downloads.
|
||||
|
||||
## Develop
|
||||
|
||||
You want to hack on OSM2VectorTiles yourself or are interested in running or adapting the workflow yourself.
|
||||
Take a look at the [detailed usage guide](USAGE.md) which explains the workflow and the components.
|
||||
|
||||
## License
|
||||
|
||||
The project is under the MIT license while the data downloads use the [Open Database License](http://wiki.openstreetmap.org/wiki/Open_Database_License) from OpenStreetMap.
|
||||
|
|
|
@ -0,0 +1,56 @@
|
|||
# Usage Documentation
|
||||
|
||||
If you've gotten this far, you've already explored the [documentation](http://osm2vectortiles.org/docs/) and likely have imported
|
||||
a smaller extract of the planet. If you're looking to adapt OSM2VectorTiles for your own purposes
|
||||
or run the process yourself this usage documentation is for you.
|
||||
|
||||
## Requirements
|
||||
|
||||
The entire project is structured components using Docker containers
|
||||
to work together. Ensure you meet the prerequisites for running the
|
||||
OSM2VectorTiles workflow.
|
||||
|
||||
- Install [Docker](https://docs.docker.com/engine/installation/)
|
||||
- Install [Docker Compose](https://docs.docker.com/compose/install/)
|
||||
|
||||
We assume a single machine setup for this purpose and later go into detail
|
||||
how to run the workflow in a distributed manner.
|
||||
|
||||
**Hardware Requirements:**
|
||||
|
||||
You can render small areas with OSM2VectorTiles on your local machine.
|
||||
However to run the workflow at global scale you need significant infrastructure.
|
||||
|
||||
- 500GB disk space (150GB PostGIS, 30GB planet dump, 50GB imposm3 cache, 50 GB final MBTiles)
|
||||
- 16GB+ RAM recommended (up until 50 GB RAM for PostGIS)
|
||||
- 8+ CPU cores (up until 16-40 cores) for rendering vector tiles and PostGIS calculations
|
||||
|
||||
## High-level Procedure
|
||||
|
||||
The architecture of the project is structured into the import phase (ETL process),
|
||||
the changed tiles detection phase and the export phase (render vector tiles).
|
||||
|
||||
![/src/etl_components.png](Workflow structured into components)
|
||||
|
||||
### Component Overview
|
||||
|
||||
Documentation for each component can be find in the respective source directory.
|
||||
|
||||
**Import Components**
|
||||
|
||||
- **[import-external](/src/import-external)**: Import all data that is not directly form OpenStreetMap (NaturalEarth, OpenStreetMapData, custom data files)
|
||||
- **[import-osm](/src/import-osm)**: Import OpenStreetMap planet files into PostGIS using imposm3
|
||||
- **[import-sql](/src/import-sql)**: Provision and generate SQL used in the different layers. Contains most of the SQL logic.
|
||||
|
||||
**Export Components**
|
||||
|
||||
- **[export-worker](/src/export-worker)**: Responsible for rendering vector tiles using the vector data source **[osm2vectortiles.tm2source](/osm2vectortiles.tm2source)**. Exports can be run together with a message queue like RabbitMQ or standalone for smaller extracts where it is not necessary to divide the work into several parts.
|
||||
- **[merge-jobs](/src/merge-jobs)**: Merges results of distributed rendering together into a single planet MBTiles file.
|
||||
|
||||
**Changed Tile Detection Components**
|
||||
|
||||
- **[update-osm-diff](/src/import-osm-diff)**: Download diffs from OpenStreetMap based on imported planet file.
|
||||
- **[import-osm-diff](/src/import-osm-diff)**: Import OpenStreetMap diff file created by **update-osm-diff**.
|
||||
- **[merge-osm-diff](/src/merge-osm-diff)**: Merge latest diff file into the old planet file.
|
||||
- **[changed-tiles](/src/changed-tiles)**: Calculate list of changed tiles
|
||||
- **[generate-jobs](/src/generate-jobs)**: Responsible for creating JSON jobs for rendering the planet initially or jobs for updating the planet.
|
Plik binarny nie jest wyświetlany.
Po Szerokość: | Wysokość: | Rozmiar: 73 KiB |
Ładowanie…
Reference in New Issue