Remove unneeded toll code (#1262)

This PR removes unneeded `CASE` clauses which converts `toll` tags to booleans.  However, the `toll` tag is already mapped as a boolean by imposm, therefore this processing can be simplified.
pull/1263/head^2
Brian Sperlongano 2021-10-13 14:43:14 -04:00 zatwierdzone przez GitHub
rodzic 4d6945b935
commit aaa68048d9
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 2 dodań i 4 usunięć

Wyświetl plik

@ -340,7 +340,7 @@ FROM (
public_transport,
service_value(service) AS service,
CASE WHEN access IN ('private', 'no') THEN 'no' END AS access,
CASE WHEN toll='yes' THEN true ELSE NULL::boolean END AS toll,
toll,
is_bridge,
is_tunnel,
is_ford,

Wyświetl plik

@ -32,9 +32,7 @@ SELECT (ST_Dump(ST_LineMerge(ST_Collect(geometry)))).geom AS geometry,
CASE
WHEN access IN ('private', 'no') THEN 'no'
ELSE NULL::text END AS access,
CASE
WHEN toll = 'yes' THEN true
ELSE false END AS toll,
toll,
layer
FROM osm_highway_linestring_gen_z11
-- mapping.yaml pre-filter: motorway/trunk/primary/secondary/tertiary, with _link variants, construction, ST_IsValid()