Skip to main content

UNKNOWN

Project description

# OpenMapTiles Tools [![Build Status](https://api.travis-ci.org/openmaptiles/openmaptiles-tools.svg?branch=master)](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

openmaptiles-tools-0.2.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file openmaptiles-tools-0.2.tar.gz.

File metadata

File hashes

Hashes for openmaptiles-tools-0.2.tar.gz
Algorithm Hash digest
SHA256 2167f0377a6a7eee0396e143d96268876fac3781b42e5705bb02734dc72174d5
MD5 d9fdbc05233633de231ca39d3da9fbe7
BLAKE2b-256 68062791d9d712582cc7bb1ef3640dcc02dcef22b2527a9edd986c8571e0fa62

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page