Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix smalint bug in tiler #445

Merged
merged 3 commits into from
Dec 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/chartpress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- 'main'
- 'staging'
- 'development'
- 'refactor/imposm'
- 'fix/tiler_server'
jobs:
build:
runs-on: ubuntu-20.04
Expand Down
2 changes: 1 addition & 1 deletion images/tiler-cache/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down
90 changes: 49 additions & 41 deletions images/tiler-server/config/providers/transport_lines.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down
Loading