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 transform to make population an integer #97

Merged
merged 2 commits into from
Dec 1, 2015

Conversation

rmarianski
Copy link
Member

Refs: tilezen/vector-datasource#230
Connects with: tilezen/vector-datasource#416

@zerebubuth: could you review please?

@@ -389,6 +389,14 @@ def place_ne_capital(shape, properties, fid, zoom):
return shape, properties, fid


def place_population_int(shape, properties, fid, zoom):
population_str = properties.get('population')
Copy link
Member

Choose a reason for hiding this comment

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

Do we want to pop the population property so that if the parsing fails we don't leave a str property?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good call. Updated in ef91c10

@zerebubuth
Copy link
Member

👍 looks good to me!

rmarianski added a commit that referenced this pull request Dec 1, 2015
Add transform to make population an integer
@rmarianski rmarianski merged commit 63576e9 into integration-1 Dec 1, 2015
@rmarianski rmarianski deleted the population-integer branch December 1, 2015 15:40
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