Run get_basic_name after osml10n_street_abbrev_* (#1326)
PR move `get_basic_names(tags, geometry)` function from `transportation_name_tags` function and adding it after `transportation_name_tags` resolve street abbrevation.
PR runs through `test-sql` test without error. Adding to `osm_transportation_name_network` (table and for update) was done in consequence of `test-sql` errors ([update test 500](a747d98550/tests/test-post-update.sql (L53))). Originally `get_basic_names` was just in `osm_transportation_name_linestring` table.
FIX #1324

This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
-- etldoc: osm_aerialway_linestring -> osm_transportation_name_linestring
|
||||
CREATE TABLE IF NOT EXISTS osm_transportation_name_linestring AS
|
||||
SELECT (ST_Dump(geometry)).geom AS geometry,
|
||||
tags,
|
||||
tags || get_basic_names(tags, geometry) AS tags,
|
||||
ref,
|
||||
highway,
|
||||
subclass,
|
||||
@@ -278,7 +278,7 @@ BEGIN
|
||||
SELECT
|
||||
geometry,
|
||||
osm_id,
|
||||
tags,
|
||||
tags || get_basic_names(tags, geometry) AS tags,
|
||||
ref,
|
||||
highway,
|
||||
subclass,
|
||||
@@ -493,7 +493,7 @@ BEGIN
|
||||
|
||||
INSERT INTO osm_transportation_name_linestring
|
||||
SELECT (ST_Dump(geometry)).geom AS geometry,
|
||||
tags,
|
||||
tags|| get_basic_names(tags, geometry) AS tags,
|
||||
ref,
|
||||
highway,
|
||||
subclass,
|
||||
|
||||
Reference in New Issue
Block a user