Skip to content

Coordinates should accept list or tuple #2

Description

@Taxuspt

The asserts on lines 30 and 63, i.e.
assert isinstance(coordinates, list)
should also accept tuples, i.e.
assert isinstance(coordinates, (list,tuple))

Since tuples are a valid format on GeoJson and some libraries (e.g. shapely) map shapes to tuples instead of lists.

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