From 84929567300e94bce77d4e3230cbdc45d6f70521 Mon Sep 17 00:00:00 2001 From: Rub21 Date: Sat, 21 Dec 2024 13:18:55 -0500 Subject: [PATCH 1/3] Fix smalint bug in tiler --- .../config/providers/transport_lines.toml | 90 ++++++++++--------- 1 file changed, 49 insertions(+), 41 deletions(-) diff --git a/images/tiler-server/config/providers/transport_lines.toml b/images/tiler-server/config/providers/transport_lines.toml index bd481324..a4c1ee9a 100644 --- a/images/tiler-server/config/providers/transport_lines.toml +++ b/images/tiler-server/config/providers/transport_lines.toml @@ -7,15 +7,15 @@ sql = """ SELECT ST_AsMVTGeom(geometry, !BBOX!) AS geometry, ABS(osm_id) AS osm_id, - NULLIF(type, '') AS type, - NULLIF(tunnel, '') AS tunnel, - NULLIF(bridge, '') AS bridge, - NULLIF(ref, '') AS ref, - NULLIF(service, '') AS service, - NULLIF(name, '') AS name, - NULLIF(electrified, '') AS electrified, - NULLIF(highspeed, '') AS highspeed, - NULLIF(usage, '') AS usage, + type, + tunnel, + bridge, + ref, + service, + name, + electrified, + highspeed, + usage, NULLIF(start_date, '') AS start_date, NULLIF(end_date, '') AS end_date, isodatetodecimaldate(pad_date(start_date, 'start'), FALSE) AS start_decdate, @@ -36,14 +36,16 @@ sql = """ SELECT ST_AsMVTGeom(geometry, !BBOX!) AS geometry, ABS(osm_id) AS osm_id, - NULLIF(ref, '') AS ref, - NULLIF(class, '') AS class, - NULLIF(type, '') AS type, - NULLIF(service, '') AS service, - NULLIF(name, '') AS name, - NULLIF(electrified, '') AS electrified, - NULLIF(highspeed, '') AS highspeed, - NULLIF(usage, '') AS usage, + ref, + class, + type, + tunnel, + bridge, + service, + name, + electrified, + highspeed, + usage, NULLIF(start_date, '') AS start_date, NULLIF(end_date, '') AS end_date, isodatetodecimaldate(pad_date(start_date, 'start'), FALSE) AS start_decdate, @@ -64,14 +66,16 @@ sql = """ SELECT ST_AsMVTGeom(geometry, !BBOX!) AS geometry, ABS(osm_id) AS osm_id, - NULLIF(ref, '') AS ref, - NULLIF(class, '') AS class, - NULLIF(type, '') AS type, - NULLIF(service, '') AS service, - NULLIF(name, '') AS name, - NULLIF(electrified, '') AS electrified, - NULLIF(highspeed, '') AS highspeed, - NULLIF(usage, '') AS usage, + ref, + class, + type, + tunnel, + bridge, + service, + name, + electrified, + highspeed, + usage, NULLIF(start_date, '') AS start_date, NULLIF(end_date, '') AS end_date, isodatetodecimaldate(pad_date(start_date, 'start'), FALSE) AS start_decdate, @@ -92,14 +96,16 @@ sql = """ SELECT ST_AsMVTGeom(geometry, !BBOX!) AS geometry, ABS(osm_id) AS osm_id, - NULLIF(ref, '') AS ref, - NULLIF(class, '') AS class, - NULLIF(type, '') AS type, - NULLIF(service, '') AS service, - NULLIF(name, '') AS name, - NULLIF(electrified, '') AS electrified, - NULLIF(highspeed, '') AS highspeed, - NULLIF(usage, '') AS usage, + ref, + class, + tunnel, + bridge, + type, + service, + name, + electrified, + highspeed, + usage, NULLIF(start_date, '') AS start_date, NULLIF(end_date, '') AS end_date, isodatetodecimaldate(pad_date(start_date, 'start'), FALSE) AS start_decdate, @@ -120,14 +126,16 @@ sql = """ SELECT ST_AsMVTGeom(geometry, !BBOX!) AS geometry, ABS(osm_id) AS osm_id, - NULLIF(ref, '') AS ref, - NULLIF(class, '') AS class, - NULLIF(type, '') AS type, - NULLIF(service, '') AS service, - NULLIF(name, '') AS name, - NULLIF(electrified, '') AS electrified, - NULLIF(highspeed, '') AS highspeed, - NULLIF(usage, '') AS usage, + ref, + class, + type, + tunnel, + bridge, + service, + name, + electrified, + highspeed, + usage, NULLIF(start_date, '') AS start_date, NULLIF(end_date, '') AS end_date, isodatetodecimaldate(pad_date(start_date, 'start'), FALSE) AS start_decdate, From ad7e52bf6f8fe8b97e1b670de1d0ce382f6f9664 Mon Sep 17 00:00:00 2001 From: Rub21 Date: Sat, 21 Dec 2024 13:22:40 -0500 Subject: [PATCH 2/3] Enable chartpress to deploy image --- .github/workflows/chartpress.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/chartpress.yaml b/.github/workflows/chartpress.yaml index f92fc6f5..990758e5 100644 --- a/.github/workflows/chartpress.yaml +++ b/.github/workflows/chartpress.yaml @@ -5,7 +5,7 @@ on: - 'main' - 'staging' - 'development' - - 'refactor/imposm' + - 'fix/tiler_server' jobs: build: runs-on: ubuntu-20.04 From 21c350dbbfdbf736a882054224956f3fcad4dd8b Mon Sep 17 00:00:00 2001 From: Rub21 Date: Sat, 21 Dec 2024 13:26:45 -0500 Subject: [PATCH 3/3] Update tiler-cache docker image --- images/tiler-cache/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/tiler-cache/Dockerfile b/images/tiler-cache/Dockerfile index aecf77f2..eaf2b336 100644 --- a/images/tiler-cache/Dockerfile +++ b/images/tiler-cache/Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/openhistoricalmap/tiler-server:0.0.1-0.dev.git.1964.h8703c77 +FROM ghcr.io/openhistoricalmap/tiler-server:0.0.1-0.dev.git.1967.h8492956 RUN apk update && apk add --no-cache \ proj \