2016-10-28 19:56:39 +00:00
|
|
|
all: build/openmaptiles.tm2source/data.yml build/mapping.yaml build/tileset.sql
|
|
|
|
|
|
|
|
.PHONY: docs
|
2016-10-30 15:07:47 +00:00
|
|
|
docs: layers/railway/README.md layers/boundary/README.md layers/water/README.md layers/building/README.md layers/highway/README.md layers/highway_name/README.md layers/poi/README.md layers/place/README.md layers/waterway/README.md layers/water_name/README.md layers/landcover/README.md layers/landuse/README.md layers/housenumber/README.md
|
2016-10-23 15:36:48 +00:00
|
|
|
|
|
|
|
build/openmaptiles.tm2source/data.yml:
|
|
|
|
mkdir -p build/openmaptiles.tm2source && generate-tm2source openmaptiles.yaml --host="postgres" --port=5432 --database="openmaptiles" --user="openmaptiles" --password="openmaptiles" > build/openmaptiles.tm2source/data.yml
|
|
|
|
|
|
|
|
build/mapping.yaml:
|
|
|
|
mkdir -p build && generate-imposm3 openmaptiles.yaml > build/mapping.yaml
|
|
|
|
|
|
|
|
build/tileset.sql:
|
|
|
|
mkdir -p build && generate-sql openmaptiles.yaml > build/tileset.sql
|
|
|
|
|
2016-10-28 20:34:42 +00:00
|
|
|
layers/poi/README.md:
|
|
|
|
generate-doc layers/poi/poi.yaml --diagram layers/poi/mapping > layers/poi/README.md
|
|
|
|
|
2016-10-28 19:07:07 +00:00
|
|
|
layers/highway/README.md:
|
|
|
|
generate-doc layers/highway/highway.yaml --diagram layers/highway/mapping > layers/highway/README.md
|
|
|
|
|
2016-10-28 20:34:42 +00:00
|
|
|
layers/highway_name/README.md:
|
|
|
|
generate-doc layers/highway_name/highway_name.yaml > layers/highway_name/README.md
|
|
|
|
|
2016-10-28 17:40:41 +00:00
|
|
|
layers/railway/README.md:
|
|
|
|
generate-doc layers/railway/railway.yaml --diagram layers/railway/mapping > layers/railway/README.md
|
|
|
|
|
2016-10-28 18:39:38 +00:00
|
|
|
layers/boundary/README.md:
|
|
|
|
generate-doc layers/boundary/boundary.yaml --diagram layers/boundary/mapping > layers/boundary/README.md
|
|
|
|
|
2016-10-29 13:16:21 +00:00
|
|
|
layers/water_name/README.md:
|
|
|
|
generate-doc layers/water_name/water_name.yaml > layers/water_name/README.md
|
|
|
|
|
2016-10-28 18:49:20 +00:00
|
|
|
layers/water/README.md:
|
|
|
|
generate-doc layers/water/water.yaml --diagram layers/water/mapping > layers/water/README.md
|
|
|
|
|
2016-10-29 13:16:21 +00:00
|
|
|
layers/waterway/README.md:
|
|
|
|
generate-doc layers/waterway/waterway.yaml --diagram layers/waterway/mapping > layers/waterway/README.md
|
|
|
|
|
2016-10-28 18:52:42 +00:00
|
|
|
layers/building/README.md:
|
|
|
|
generate-doc layers/building/building.yaml > layers/building/README.md
|
|
|
|
|
2016-10-29 09:15:13 +00:00
|
|
|
layers/place/README.md:
|
|
|
|
generate-doc layers/place/place.yaml --diagram layers/place/mapping > layers/place/README.md
|
|
|
|
|
2016-10-30 15:07:47 +00:00
|
|
|
layers/landuse/README.md:
|
|
|
|
generate-doc layers/landuse/landuse.yaml --diagram layers/landuse/mapping > layers/landuse/README.md
|
|
|
|
|
|
|
|
layers/landcover/README.md:
|
|
|
|
generate-doc layers/landcover/landcover.yaml --diagram layers/landcover/mapping > layers/landcover/README.md
|
|
|
|
|
|
|
|
layers/housenumber/README.md:
|
|
|
|
generate-doc layers/housenumber/housenumber.yaml > layers/housenumber/README.md
|
|
|
|
|
2016-10-23 15:36:48 +00:00
|
|
|
clean:
|
2016-10-28 17:40:41 +00:00
|
|
|
rm -f build/openmaptiles.tm2source/data.yml && rm -f build/mapping.yaml && rm -f build/tileset.sql && rm -f layers/**/README.md&& rm -f layers/**/*.png
|
2016-11-15 22:02:28 +00:00
|
|
|
|
|
|
|
clean_build:
|
|
|
|
rm -f build/openmaptiles.tm2source/data.yml && rm -f build/mapping.yaml && rm -f build/tileset.sql
|
2016-11-27 10:31:43 +00:00
|
|
|
|
2016-11-28 22:15:47 +00:00
|
|
|
clean-docker:
|
|
|
|
docker-compose down -v --remove-orphans
|
|
|
|
docker-compose rm -fv
|
|
|
|
docker volume ls -q | grep openmaptiles | xargs -r docker volume rm || true
|
|
|
|
|
|
|
|
list-docker-images:
|
|
|
|
docker images | grep openmaptiles
|
|
|
|
|
|
|
|
refresh-docker-images:
|
|
|
|
docker pull openmaptiles/generate-vectortiles
|
|
|
|
docker pull openmaptiles/import-lakelines
|
|
|
|
docker pull openmaptiles/import-natural-earth
|
|
|
|
docker pull openmaptiles/import-osm
|
|
|
|
docker pull openmaptiles/import-sql
|
|
|
|
docker pull openmaptiles/import-water
|
|
|
|
docker pull openmaptiles/openmaptiles-tools
|
|
|
|
docker pull openmaptiles/postgis
|
|
|
|
docker pull osm2vectortiles/mapbox-studio
|
|
|
|
|
|
|
|
remove-docker-images:
|
|
|
|
docker rmi openmaptiles/generate-vectortiles
|
|
|
|
docker rmi openmaptiles/import-lakelines
|
|
|
|
docker rmi openmaptiles/import-natural-earth
|
|
|
|
docker rmi openmaptiles/import-osm
|
|
|
|
docker rmi openmaptiles/import-sql
|
|
|
|
docker rmi openmaptiles/import-water
|
|
|
|
docker rmi openmaptiles/openmaptiles-tools
|
|
|
|
docker rmi openmaptiles/postgis
|
|
|
|
docker rmi osm2vectortiles/mapbox-studio
|
|
|
|
|
2016-11-27 10:31:43 +00:00
|
|
|
psql:
|
|
|
|
docker-compose run --rm import-osm /usr/src/app/psql.sh
|
|
|
|
|
2016-11-28 22:15:47 +00:00
|
|
|
psql-list-tables:
|
|
|
|
docker-compose run --rm import-osm /usr/src/app/psql.sh -P pager=off -c "\d+"
|
|
|
|
|
|
|
|
psql-pg-stat-reset:
|
|
|
|
docker-compose run --rm import-osm /usr/src/app/psql.sh -P pager=off -c 'SELECT pg_stat_statements_reset();'
|
|
|
|
|
|
|
|
forced-clean-sql:
|
|
|
|
docker-compose run --rm import-osm /usr/src/app/psql.sh -c "DROP SCHEMA IF EXISTS public CASCADE"
|
|
|
|
docker-compose run --rm import-osm /usr/src/app/psql.sh -c "CREATE SCHEMA IF NOT EXISTS public"
|
|
|
|
docker-compose run --rm import-osm /usr/src/app/psql.sh -c "CREATE EXTENSION hstore"
|
|
|
|
docker-compose run --rm import-osm /usr/src/app/psql.sh -c "CREATE EXTENSION postgis"
|
|
|
|
docker-compose run --rm import-osm /usr/src/app/psql.sh -c "CREATE EXTENSION pg_stat_statements"
|
|
|
|
docker-compose run --rm import-osm /usr/src/app/psql.sh -c "GRANT ALL ON SCHEMA public TO postgres;"
|
|
|
|
docker-compose run --rm import-osm /usr/src/app/psql.sh -c "GRANT ALL ON SCHEMA public TO public;"
|
|
|
|
docker-compose run --rm import-osm /usr/src/app/psql.sh -c "COMMENT ON SCHEMA public IS 'standard public schema';"
|
|
|
|
|
2016-11-27 10:31:43 +00:00
|
|
|
import-sql-dev:
|
|
|
|
docker-compose run --rm import-sql /bin/bash
|
|
|
|
|
|
|
|
import-osm-dev:
|
|
|
|
docker-compose run --rm import-osm /bin/bash
|
|
|
|
|
|
|
|
download-geofabrik:
|
|
|
|
@echo Download area : $(area)
|
|
|
|
docker-compose run --rm import-osm ./download-geofabrik.sh $(area)
|
|
|
|
ls ./data/*
|
|
|
|
|
|
|
|
download-geofabrik-list:
|
|
|
|
docker-compose run --rm import-osm ./download-geofabrik-list.sh
|
|
|
|
|
2016-11-28 15:44:30 +00:00
|
|
|
start-mapbox-studio:
|
|
|
|
docker-compose up mapbox-studio
|
|
|
|
|
2016-11-27 10:31:43 +00:00
|
|
|
etlgraph:
|
|
|
|
generate-etlgraph layers/boundary/boundary.yaml
|
|
|
|
generate-etlgraph layers/highway/highway.yaml
|
|
|
|
generate-etlgraph layers/housenumber/housenumber.yaml
|
|
|
|
generate-etlgraph layers/landuse/landuse.yaml
|
|
|
|
generate-etlgraph layers/poi/poi.yaml
|
|
|
|
generate-etlgraph layers/water/water.yaml
|
|
|
|
generate-etlgraph layers/waterway/waterway.yaml
|
|
|
|
generate-etlgraph layers/building/building.yaml
|
|
|
|
generate-etlgraph layers/highway_name/highway_name.yaml
|
|
|
|
generate-etlgraph layers/landcover/landcover.yaml
|
|
|
|
generate-etlgraph layers/place/place.yaml
|
|
|
|
generate-etlgraph layers/railway/railway.yaml
|
|
|
|
generate-etlgraph layers/water_name/water_name.yaml
|
2016-11-28 22:15:47 +00:00
|
|
|
|