turfpy icon indicating copy to clipboard operation
turfpy copied to clipboard

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

Open gbin opened this issue 2 years ago • 0 comments

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 avatar Jun 06 '23 03:06 gbin