Skip to content

Commit

Permalink
Fix smalint bug in tiler
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Dec 21, 2024
1 parent ac8ed93 commit 8492956
Showing 1 changed file with 49 additions and 41 deletions.
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

0 comments on commit 8492956

Please sign in to comment.