Skip to content

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

Description

@gbin

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")

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions