osm2vectortiles/docs/import-export-process.md

25 wiersze
1.0 KiB
Markdown
Czysty Zwykły widok Historia

2015-12-15 13:58:36 +00:00
---
layout: page
title: Import and Export Process
published: true
---
# Import and Export Process
### Import
2015-12-17 09:28:56 +00:00
The import process imports the data from all [data sources](/docs/data-sources.html) into a single PostGIS database.
The figure below shows which data source gets imported with which import tool.
2015-12-15 13:58:36 +00:00
![Import Step](/media/import_package_flow.png)
2015-12-17 09:28:56 +00:00
The `import-sql` container adds helper sql functions, which are used inside the [data style](https://github.com/osm2vectortiles/osm2vectortiles/blob/master/open-streets.tm2source/data.yml).
2015-12-15 13:58:36 +00:00
### Export
2015-12-17 09:28:56 +00:00
For generating the vector tiles the tilelive tool [tl](https://github.com/mojodna/tl) is used which wraps around Mapnik.
The tm2source project defines all feature sets (layers) and is transformed into a Mapnik XML stylesheet by the tilelive-tm2source provider.
Tilelive-bridge calls Mapnik with the generated stylesheet and hands the generated data over to node-mbtiles, which stores the vector tiles in a MBTiles container.
2015-12-15 13:58:36 +00:00
![Export Step](/media/export_package_flow.png)