UNKNOWN
Project description
# OpenMapTiles Tools [](https://travis-ci.org/openmaptiles/openmaptiles-tools)
The OpenMapTiles generation tools for generating TM2Source projects, imposm3 mappings and SQL instructions from OpenMapTiles layers.
## Install
You need Python 2 or Python 3 installed on your system.
` pip install openmaptiles-tools # As long as we are not published to PyPI you can install directly from git pip install git+https://github.com/openmaptiles/openmaptiles-tools `
## Usage
### Generate TM2Source Projects for Mapbox Studio Classic
Takes a tileset definition an generates a TM2Source YAML project file. You need to provide PostgreSQL database connection settings before generating the project.
` generate-tm2source <tileset> --host="localhost" --port=5432 --database="osm" --user="osm" --password="osm" `
### Generate Imposm3 Mapping File
Takes a tileset definition an generates an imposm3 mapping file for importing OSM data.
` generate-imposm3 <tileset> `
### Collect SQL schemas
Takes a tileset definition and collects all SQL referenced in the layer definitions.
` generate-sql <tileset> `
### Generate Markdown Documentation
Takes a tileset definition and generates Markdown documentation.
` generate-doc <tileset> `
### Generate ETL (Extract-Transform-Load ) graph
Takes a source code from the imposm3 mapping file and the SQL postprocessing code , nad parsing for the etldoc: graphviz based comments, and generate an svg file. The .dot and the .svg filename prefix is etl_
` generate-etlgraph <tileset> <target-directory> generate-etlgraph layers/landcover/landcover.yaml ./build/devdoc generate-etlgraph layers/railway/railway.yaml ./build/etlgraph `
example:
input command: ` generate-etlgraph layers/landcover/landcover.yaml ` output fies: - layers/landcover/etl_landcover.dot - layers/landcover/etl_landcover.svg
### Generate SQL query for a given layer and zoom level
example: ` generate-sqlquery layers/landcover/landcover.yaml 14 `
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file openmaptiles-tools-0.2.tar.gz.
File metadata
- Download URL: openmaptiles-tools-0.2.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2167f0377a6a7eee0396e143d96268876fac3781b42e5705bb02734dc72174d5
|
|
| MD5 |
d9fdbc05233633de231ca39d3da9fbe7
|
|
| BLAKE2b-256 |
68062791d9d712582cc7bb1ef3640dcc02dcef22b2527a9edd986c8571e0fa62
|