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

Difference method not working for certain cases #14

Open
muety opened this issue Oct 7, 2019 · 0 comments
Open

Difference method not working for certain cases #14

muety opened this issue Oct 7, 2019 · 0 comments

Comments

@muety
Copy link

muety commented Oct 7, 2019

difference() method only works for a pair of tiles where one is top-right compared to the other. If they are arranged in the opposite way, namely that the second is top-left of the first, an empty list is returned.

Example

# Correct
qk1 = quadkey.QuadKey('021')
qk2 = quadkey.QuadKey('011')
qk1.difference(qk2) # ['011', '013', '031', '010', '012', '030', '001', '003', '021']

# Not correct
qk1 = quadkey.QuadKey('033')
qk2 = quadkey.QuadKey('003')
qk1.difference(qk2) # []
muety referenced this issue in muety/pyquadkey2 Oct 7, 2019
Compatibility with Python 3.
Update Readme.
@muety muety mentioned this issue Oct 7, 2019
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

No branches or pull requests

1 participant