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

Correct the README django code #102

Merged
merged 1 commit into from Nov 28, 2017
Merged

Correct the README django code #102

merged 1 commit into from Nov 28, 2017

Conversation

rmarianski
Copy link
Member

Fixes #101

The django code in the README was originally from an outside contribution. I don't know if it just got truncated when things got moved around, but I took a guess at what working code should have looked like.

int((y_merc - y0) * MVT_EXTENT / y_span),

tile_based_coords = []
for x_merc, y_merc in line:
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure what the line object would be at this point, and whether it would support iteration over the points directly, or (as in Shapely) would need line.coords.

If we don't know that the code example works, would it be better to remove it?

Copy link
Member Author

Choose a reason for hiding this comment

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

I tested that it executed, so I'm confident that the code itself doesn't have issues with the api like that. But to your point about removing it, we can go that way too.

Copy link
Member

Choose a reason for hiding this comment

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

Oh, okay. Cool! If it works, then even better 👍

@rmarianski rmarianski merged commit 46629e4 into master Nov 28, 2017
@rmarianski rmarianski deleted the correct-readme-code branch November 28, 2017 16:35
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

3 participants