kopia lustrzana https://github.com/openmaptiles/openmaptiles
add province, increase scalerank + labelrank (#1306)
Add `province` (next to `state`) tag into `osm_state_point`pull/1307/head^2
rodzic
75d8c80228
commit
054d3a7e4d
|
@ -124,6 +124,9 @@ tables:
|
||||||
- *name_de
|
- *name_de
|
||||||
- name: tags
|
- name: tags
|
||||||
type: hstore_tags
|
type: hstore_tags
|
||||||
|
- name: place
|
||||||
|
key: place
|
||||||
|
type: string
|
||||||
- name: is_in_country
|
- name: is_in_country
|
||||||
key: is_in:country
|
key: is_in:country
|
||||||
type: string
|
type: string
|
||||||
|
@ -140,6 +143,7 @@ tables:
|
||||||
mapping:
|
mapping:
|
||||||
place:
|
place:
|
||||||
- state
|
- state
|
||||||
|
- province
|
||||||
|
|
||||||
# etldoc: imposm3 -> osm_city_point
|
# etldoc: imposm3 -> osm_city_point
|
||||||
city_point:
|
city_point:
|
||||||
|
|
Plik binarny nie jest wyświetlany.
Przed Szerokość: | Wysokość: | Rozmiar: 51 KiB Po Szerokość: | Wysokość: | Rozmiar: 53 KiB |
|
@ -70,7 +70,7 @@ FROM (
|
||||||
COALESCE(NULLIF(name_en, ''), name) AS name_en,
|
COALESCE(NULLIF(name_en, ''), name) AS name_en,
|
||||||
COALESCE(NULLIF(name_de, ''), name, name_en) AS name_de,
|
COALESCE(NULLIF(name_de, ''), name, name_en) AS name_de,
|
||||||
tags,
|
tags,
|
||||||
'state' AS class,
|
place::text AS class,
|
||||||
"rank",
|
"rank",
|
||||||
NULL::int AS capital,
|
NULL::int AS capital,
|
||||||
NULL::text AS iso_a2
|
NULL::text AS iso_a2
|
||||||
|
|
|
@ -32,6 +32,7 @@ layer:
|
||||||
- continent
|
- continent
|
||||||
- country
|
- country
|
||||||
- state
|
- state
|
||||||
|
- province
|
||||||
- city
|
- city
|
||||||
- town
|
- town
|
||||||
- village
|
- village
|
||||||
|
|
|
@ -29,8 +29,8 @@ $$
|
||||||
-- because name matching is difficult
|
-- because name matching is difficult
|
||||||
ST_Within(osm.geometry, ne.geometry)
|
ST_Within(osm.geometry, ne.geometry)
|
||||||
-- We leave out leess important states
|
-- We leave out leess important states
|
||||||
AND ne.scalerank <= 3
|
AND ne.scalerank <= 6
|
||||||
AND ne.labelrank <= 2
|
AND ne.labelrank <= 7
|
||||||
)
|
)
|
||||||
UPDATE osm_state_point AS osm
|
UPDATE osm_state_point AS osm
|
||||||
-- Normalize both scalerank and labelrank into a ranking system from 1 to 6.
|
-- Normalize both scalerank and labelrank into a ranking system from 1 to 6.
|
||||||
|
|
Ładowanie…
Reference in New Issue