Skip to content

Commit

Permalink
Modify capital-names and placenames-medium to ignore admin_level on c…
Browse files Browse the repository at this point in the history
…apital=yes nodes.
  • Loading branch information
Jojo4u authored and nebulon42 committed Dec 4, 2016
1 parent ba2ddd6 commit da19452
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -1538,7 +1538,6 @@ Layer:
WHERE place IN ('city', 'town')
AND name IS NOT NULL
AND capital = 'yes'
AND admin_level = '2'
ORDER BY population DESC
) AS capital_names
properties:
Expand Down Expand Up @@ -1600,14 +1599,14 @@ Layer:
END)
*
(CASE
WHEN (capital = '4' OR (capital = 'yes' AND admin_level = '4')) THEN 2
WHEN (capital = '4') THEN 2
ELSE 1
END)
) AS score
FROM planet_osm_point
WHERE place IN ('city', 'town')
AND name IS NOT NULL
AND (capital IS NULL OR capital != 'yes' OR (capital = 'yes' AND (admin_level IS NULL OR admin_level != '2')))
AND (capital IS NULL OR capital != 'yes')
) as p
ORDER BY score DESC, length(name) DESC, name
) AS placenames_medium
Expand Down

0 comments on commit da19452

Please sign in to comment.