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

Use rmapshaper and save geojson files #14

Merged
merged 2 commits into from
Jan 18, 2016
Merged

Conversation

nikolai-b
Copy link
Contributor

No description provided.

@@ -492,6 +492,7 @@ for(i in 1:nrow(cents)){
cents$ebike_slc[i] <- sum(l$ebike_slc[j])
cents$ebike_sic[i] <- sum(l$ebike_sic[j])

if(length(j) == 0) next
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The NANs were causing a problem for the geojson outputing, is it ok to just skip them @Robinlovelace ?

Copy link
Member

Choose a reason for hiding this comment

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

If this works, go with it. j represents the home location of the centroid in l and if no lines have their origin in cents[i] then yes the loop should skip to the next one. Reasonable fix - will be less relevant when we use more lines. Thanks for asking for feedback, liking the PR workflow.

Robinlovelace added a commit that referenced this pull request Jan 18, 2016
Use rmapshaper and save geojson files
@Robinlovelace Robinlovelace merged commit 7c684c6 into master Jan 18, 2016
@Robinlovelace Robinlovelace deleted the use_rmapshaper branch February 16, 2016 14:10
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.

None yet

2 participants