-
Notifications
You must be signed in to change notification settings - Fork 576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BREAKING] Remove name_en and name_de #928
base: master
Are you sure you want to change the base?
Conversation
Closes openmaptiles#796 and includes some of the same code as in openmaptiles#910 (rebased) by @kukulich This PR removes both `name_en` and `name_de` fields from all layers. This PR requires some changes to the styling as well: current styles use `name_en` and `name_de` instead of `name:en` and `name:de`. All other languages are already done in the new system. TODO: decide how to handle `name_int` and `name_latin`.
Results evaluating commit 9bcc519 (merged with base ffd237d as bf4831f). See run details. PostgreSQL DB size in MB: 2666 ⇒ 2662 (-0.2% change)
expand for details...
|
hstore(string_agg(nullif(slice_language_tags(tags || hstore(ARRAY ['name', name]))::text, ''), | ||
',')) AS "tags", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hstore(string_agg(nullif(slice_language_tags(tags || hstore(ARRAY ['name', name]))::text, ''), | |
',')) AS "tags", | |
hstore(string_agg(nullif(slice_language_tags(tags)::text, ''), ',')) AS "tags", |
I can see why name_en
and name_de
were originally added to tags
- their value was computed earlier using name
, name:en
and name:de
:
openmaptiles/layers/transportation_name/layer.sql
Lines 27 to 28 in fb7c1ef
COALESCE(NULLIF(name_en, ''), name) AS name_en, | |
COALESCE(NULLIF(name_de, ''), name, name_en) AS name_de, |
I fail to see the purpose of adding name
to tags
- name
is included in the result as a separate column and it is not used by the {name_languages}
expression:
query: (SELECT geometry, name, {name_languages}, ref, ref_length, network::text, class::text, subclass, layer, level, indoor FROM layer_transportation_name(!bbox!, z(!scale_denominator!))) AS t |
@TomPohys are we able to proceed with breaking changes like this targeting 4.0 or do we still expect 3.x development to continue on mainline? |
Closes #769 and includes some of the same code as in #910 (rebased) by @kukulich
See #930 for all name/localization related issues.
This PR removes both
name_en
andname_de
fields from all layers -- about 2% reduction in tile size per test below.This PR requires some changes to the styling as well:
current styles use
name_en
andname_de
instead ofname:en
andname:de
.All other languages are already done in the new system.
TODO: decide how to handle
name_int
,name:latin
,name:nonlatin