Skip to content
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 order for peaks #148

Merged
merged 2 commits into from
Apr 28, 2016
Merged

Add sort order for peaks #148

merged 2 commits into from
Apr 28, 2016

Conversation

zerebubuth
Copy link
Member

This is so that we can give them a kind_tile_rank during post-processing. We sort both peaks and volcanos so that the higher peaks appear earlier in the output.

Connects to tilezen/vector-datasource#524.

@rmarianski could you review, please?

kind = props.get('kind')
if kind != 'peak' and kind != 'volcano':
return 0
return props.get('elevation', 0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we coerce to a number here? Or does that already happen elsewhere?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it should already be a float in meters from a previous filter step.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@zerebubuth zerebubuth merged commit 8ce9e19 into integration-1 Apr 28, 2016
@zerebubuth zerebubuth deleted the 524-peak-tile-kind-rank branch April 28, 2016 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants