-
Notifications
You must be signed in to change notification settings - Fork 120
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
Add sort keys for "natural" landuse kinds #1720
Conversation
Insert `natural_wood`, `natural_forest` and `natural_park` into the middle of the sort ranking, bumping up all the values above them.
Please update for the following issues, too:
|
Added all those others - except for |
Ooops, yes those should also be landuse polygons. Good catch! |
@@ -1,16 +1,16 @@ | |||
kind,boundary,sort_rank | |||
river,,201 |
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.
What does the -
mean here?
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.
It means boundary
is not set. The empty match in river,,201
translates to kind == 'river' and boundary == ''
, which never matched (boundary
is either None
or True
), so all water features were getting a sort_rank
of 200.
spreadsheets/sort_rank/landuse.csv
Outdated
quay,*,65 | ||
wharf,*,65 | ||
port_terminal,*,64 | ||
ferry_terminal,*,64 |
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.
Can't share sort values otherwise it creates flickr no Tangram ES... so this and quay and possibly others need to offset away from each other.
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.
I've re-arranged them in ffe23bd to make them unique. Also added a test, so that we'll get a test failure if a duplicate is added in future.
spreadsheets/sort_rank/landuse.csv
Outdated
@@ -1,4 +1,5 @@ | |||
kind,geometrytype,sort_rank | |||
embankment,*,274 |
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.
Seems like this should go below power_line, more just under fence?
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.
OK. Fixed in ffe23bd.
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.
Add 2 key-value pairs, spread the values for a few other keys (no dups values!)
…ly included only as POIs. Ensure landuse sort ranks are unique, and add test for that to maintain that requirement. Adjust tests where sort ranks have changed.
The following two kind values are new to the landuse layer and need to be documented:
|
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.
Changes look good and I added docs in 7ec8850.
Insert
natural_wood
,natural_forest
andnatural_park
into the middle of the sort ranking, bumping up all the values above them.Connects to #1096.
16 total new: