Convert semi-colon separated house numbers to a range (#1562)

This PR collapses housenumber values into the form min(housenumber)-max(housenumber) for cases where housenumber is a semi-colon separated list. If the list is all numbers, the bounds are the smallest and largest numbers.  If the list includes non-numeric characters, it falls back to the first and last values in the list.
This commit is contained in:
Brian Sperlongano
2023-09-13 05:09:41 -04:00
committed by GitHub
parent 48a2b1af72
commit a7a50d84bc
3 changed files with 24 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ SELECT
-- etldoc: osm_housenumber_point -> layer_housenumber:z14_
osm_id,
geometry,
housenumber
display_housenumber(housenumber)
FROM (
SELECT
osm_id,