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

transform translate cannot be called with a 0 direction (North) #112

Open
gbin opened this issue Jun 6, 2023 · 0 comments
Open

transform translate cannot be called with a 0 direction (North) #112

gbin opened this issue Jun 6, 2023 · 0 comments

Comments

@gbin
Copy link

gbin commented Jun 6, 2023

https://github.com/omanges/turfpy/blob/master/turfpy/transformation.py#L659

0 is the same as None in that expression.

Always test None in python with:

    if direction is None:
        raise Exception("direction is required")
@gbin gbin changed the title transform translate cannot be call with a 0 direction (North) transform translate cannot be called with a 0 direction (North) Jun 6, 2023
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