Skip to content

Commit 94b7c09

Browse files
authored
Merge pull request #2 from OpenTransitTools/2.x
2.x
2 parents e4474a4 + c21b49c commit 94b7c09

File tree

21,759 files changed

+48307
-2118
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

21,759 files changed

+48307
-2118
lines changed

.env

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This file defines default environment variables for all images
2+
3+
# Layers definition and meta data
4+
TILESET_FILE=openmaptiles.yaml
5+
6+
# Use 3-part patch version to ignore patch updates, e.g. 7.0.0
7+
TOOLS_VERSION=7.1
8+
9+
# Make sure these values are in sync with the ones in .env-postgres file
10+
PGDATABASE=openmaptiles
11+
PGUSER=openmaptiles
12+
PGPASSWORD=openmaptiles
13+
PGHOST=postgres
14+
PGPORT=15432
15+
16+
# Which zooms to generate with make generate-tiles-pg
17+
MIN_ZOOM=0
18+
#MID_ZOOM=11
19+
MAX_ZOOM=16
20+
#MAX_ZOOM=7 # debug
21+
22+
# Use true (case sensitive) to allow data updates
23+
DIFF_MODE=false
24+
25+
# The current setup assumes this file is placed inside the data/ dir
26+
MBTILES_FILE=or-wa.mbtiles
27+
28+
# This is the current repl_config.json location, pre-configured in the tools Dockerfile
29+
# Makefile and quickstart replace it with the dynamically generated one, but we keep it here in case some other method is used to run.
30+
IMPOSM_CONFIG_FILE=/usr/src/app/config/repl_config.json
31+
32+
# Number of parallel processes to use when importing sql files
33+
MAX_PARALLEL_PSQL=5
34+
35+
# Number of parallel threads to use when generating vector map tiles
36+
COPY_CONCURRENCY=10
37+
38+
# Variables for generate tiles using tilelive-pgquery
39+
PGHOSTS_LIST=

CHANGES.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
1.0.1(2025-05-05)
2+
------------------
3+
- up's OMT to 2.1.3 and refactor the repo for simple build and hosting
4+
- new trimet styles and the like
5+
16
1.0.0 (2021-05-10)
27
------------------
38
- removes the python junk to simplify the project / structure

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
scripts/Makefile

data/or-wa.bbox

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-125,40,-120,50

data/or-wa.osm.pbf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
or-wa-carto.osm.pbf

docker-compose.yml

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
# This version must match the MAKE_DC_VERSION value below
2+
version: "2.8"
3+
4+
volumes:
5+
pgdata:
6+
7+
networks:
8+
postgres:
9+
driver: bridge
10+
11+
services:
12+
13+
postgres:
14+
image: "${POSTGIS_IMAGE:-openmaptiles/postgis}:${TOOLS_VERSION}"
15+
# Use "command: postgres -c jit=off" for PostgreSQL 11+ because of slow large MVT query processing
16+
# Use "shm_size: 512m" if you want to prevent a possible 'No space left on device' during 'make generate-tiles-pg'
17+
volumes:
18+
- pgdata:/var/lib/postgresql/data
19+
networks:
20+
- postgres
21+
ports:
22+
- "${PGPORT:-5432}:${PGPORT:-5432}"
23+
env_file: .env
24+
environment:
25+
# postgress container uses old variable names
26+
POSTGRES_DB: ${PGDATABASE:-openmaptiles}
27+
POSTGRES_USER: ${PGUSER:-openmaptiles}
28+
POSTGRES_PASSWORD: ${PGPASSWORD:-openmaptiles}
29+
PGPORT: ${PGPORT:-5432}
30+
31+
import-data:
32+
image: "openmaptiles/import-data:${TOOLS_VERSION}"
33+
env_file: .env
34+
networks:
35+
- postgres
36+
37+
openmaptiles-tools: &openmaptiles-tools
38+
image: "openmaptiles/openmaptiles-tools:${TOOLS_VERSION}"
39+
env_file: .env
40+
environment:
41+
# Must match the version of this file (first line)
42+
# download-osm will use it when generating a composer file
43+
MAKE_DC_VERSION: "2.8"
44+
# Allow DIFF_MODE, MIN_ZOOM, and MAX_ZOOM to be overwritten from shell
45+
DIFF_MODE: ${DIFF_MODE}
46+
MIN_ZOOM: ${MIN_ZOOM}
47+
MAX_ZOOM: ${MAX_ZOOM}
48+
#Provide BBOX from *.bbox file if exists, else from .env
49+
BBOX: ${BBOX}
50+
# Imposm configuration file describes how to load updates when enabled
51+
IMPOSM_CONFIG_FILE: ${IMPOSM_CONFIG_FILE}
52+
# Control import-sql processes
53+
MAX_PARALLEL_PSQL: ${MAX_PARALLEL_PSQL}
54+
PGDATABASE: ${PGDATABASE:-openmaptiles}
55+
PGUSER: ${PGUSER:-openmaptiles}
56+
PGPASSWORD: ${PGPASSWORD:-openmaptiles}
57+
PGPORT: ${PGPORT:-5432}
58+
MBTILES_FILE: ${MBTILES_FILE}
59+
networks:
60+
- postgres
61+
volumes:
62+
- .:/tileset
63+
- ./data:/import
64+
- ./data:/export
65+
- ./build/sql:/sql
66+
- ./build:/mapping
67+
- ./cache:/cache
68+
- ./style:/style
69+
70+
update-osm:
71+
<<: *openmaptiles-tools
72+
command: import-update
73+
74+
generate-changed-vectortiles:
75+
image: "openmaptiles/generate-vectortiles:${TOOLS_VERSION}"
76+
command: ./export-list.sh
77+
volumes:
78+
- ./data:/export
79+
- ./build/openmaptiles.tm2source:/tm2source
80+
networks:
81+
- postgres
82+
env_file: .env
83+
environment:
84+
MBTILES_NAME: ${MBTILES_FILE}
85+
# Control tilelive-copy threads
86+
COPY_CONCURRENCY: ${COPY_CONCURRENCY}
87+
PGDATABASE: ${PGDATABASE:-openmaptiles}
88+
PGUSER: ${PGUSER:-openmaptiles}
89+
PGPASSWORD: ${PGPASSWORD:-openmaptiles}
90+
PGPORT: ${PGPORT:-5432}
91+
92+
generate-vectortiles:
93+
image: "openmaptiles/generate-vectortiles:${TOOLS_VERSION}"
94+
volumes:
95+
- ./data:/export
96+
- ./build/openmaptiles.tm2source:/tm2source
97+
networks:
98+
- postgres
99+
env_file: .env
100+
environment:
101+
MBTILES_NAME: ${MBTILES_FILE}
102+
BBOX: ${BBOX}
103+
MIN_ZOOM: ${MIN_ZOOM}
104+
MAX_ZOOM: ${MAX_ZOOM}
105+
# Control tilelive-copy threads
106+
COPY_CONCURRENCY: ${COPY_CONCURRENCY}
107+
#
108+
PGDATABASE: ${PGDATABASE:-openmaptiles}
109+
PGUSER: ${PGUSER:-openmaptiles}
110+
PGPASSWORD: ${PGPASSWORD:-openmaptiles}
111+
PGPORT: ${PGPORT:-5432}
112+
113+
postserve:
114+
image: "openmaptiles/openmaptiles-tools:${TOOLS_VERSION}"
115+
command: "postserve ${TILESET_FILE} --verbose --serve=${OMT_HOST:-http://localhost}:${PPORT:-8090}"
116+
env_file: .env
117+
environment:
118+
TILESET_FILE: ${TILESET_FILE}
119+
networks:
120+
- postgres
121+
ports:
122+
- "${PPORT:-8090}:${PPORT:-8090}"
123+
volumes:
124+
- .:/tileset
125+
126+
maputnik_editor:
127+
image: "maputnik/editor"
128+
ports:
129+
- "8088:8888"
130+
131+
tileserver-gl:
132+
image: "maptiler/tileserver-gl:v5.1.3"
133+
command:
134+
- --port
135+
- "${TPORT:-8080}"
136+
- --config
137+
- "/style/config.json"
138+
restart: always
139+
ports:
140+
- "${TPORT:-8080}:${TPORT:-8080}"
141+
volumes:
142+
- ./data:/data
143+
- ./style:/style

docs/VectorTileDemo.pdf

-4.15 MB
Binary file not shown.

gl/data/borders/filtered.pbf

-14.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)