kopia lustrzana https://github.com/openmaptiles/openmaptiles
House number range fix. (#1632)
Fix house number range conversion based on https://github.com/openmaptiles/openmaptiles/issues/1583#issuecomment-1940901006.pull/1630/head^2
rodzic
8d6b95008d
commit
718fd359d3
|
@ -15,6 +15,6 @@ RETURNS text AS $$
|
|||
WHEN raw_housenumber ~ '[^0-9;]' THEN display_housenumber_nonnumeric(raw_housenumber)
|
||||
ELSE
|
||||
(SELECT min(value)::text || '–' || max(value)::text
|
||||
FROM unnest(string_to_array(raw_housenumber, ';')::int[]) AS value)
|
||||
FROM unnest(array_remove(string_to_array(raw_housenumber, ';'), '')::int[]) AS value)
|
||||
END
|
||||
$$ LANGUAGE SQL IMMUTABLE;
|
||||
|
|
Ładowanie…
Reference in New Issue