Skip to content

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

@gbin

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

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