Improve Makefile - simplify make, without local omt-tools (PR #562)

This commit is contained in:
Hsieh Chin Fan (Pham)
2019-03-22 16:34:00 +08:00
committed by Martin Mikita
parent 2871b234a5
commit 3591cb2f8d
3 changed files with 53 additions and 50 deletions

View File

@@ -2,7 +2,7 @@
OpenMapTiles is an extensible and open tile schema based on the OpenStreetMap. It is used to generate vector tiles for online zoomable maps. The project is about creating a beautiful basemaps with general layers that contain topographic information. More information [openmaptiles.org](http://openmaptiles.org/) and [openmaptiles.com](http://openmaptiles.com/).
We encourage you to collaborate, reuse and adapt existing layers and add your own layers or use our approach for your own vector tile project. Feel free to fork the repo and experiment. The repository is built on top of the [openmaptiles/tools](https://github.com/openmaptiles/openmaptiles-tools) to simplify vector tile creation.
We encourage you to collaborate, reuse and adapt existing layers and add your own layers or use our approach for your own vector tile project. Feel free to fork the repo and experiment. The repository is built on top of the [openmaptiles/openmaptiles-tools](https://github.com/openmaptiles/openmaptiles-tools) to simplify vector tile creation.
- :link: Discuss at the #openmaptiles channel at [OSM Slack](https://osmus-slack.herokuapp.com/)
- :link: Docs https://openmaptiles.org/docs
@@ -63,11 +63,10 @@ Together the layers make up the OpenMapTiles tileset.
## Develop
To work on OpenMapTiles you need Docker and Python.
To work on OpenMapTiles you need Docker.
- Install [Docker](https://docs.docker.com/engine/installation/). Minimum version is 1.12.3+.
- Install [Docker Compose](https://docs.docker.com/compose/install/). Minimum version is 1.7.1+.
- Install [OpenMapTiles tools](https://github.com/openmaptiles/openmaptiles-tools) with `pip install openmaptiles-tools`
### Build
@@ -78,8 +77,6 @@ git clone git@github.com:openmaptiles/openmaptiles.git
cd openmaptiles
# Build the imposm mapping, the tm2source project and collect all SQL scripts
make
# You can also run the build process inside a Docker container
docker run -v $(pwd):/tileset openmaptiles/openmaptiles-tools make
```
You can execute the following manual steps (for better understanding)
@@ -122,10 +119,10 @@ docker-compose run import-osm
### Work on Layers
Each time you modify layer SQL code run `make` and `docker-compose run import-sql`.
Each time you modify layer SQL code run `make` and `make import-sql`.
```
make clean && make && docker-compose run import-sql
make clean && make && make import-sql
```
Now you are ready to **generate the vector tiles**. Using environment variables