Skip to content

Coordinates should accept list or tuple #2

@Taxuspt

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.

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