Skip to content

Polygons do not accept integers #560

@jpswinski

Description

@jpswinski

In the v5 Python client, supplying a bound box like: [{'lon': -120, 'lat': -25}, {'lon': -95, 'lat': -25}, {'lon': -95, 'lat': 0}, {'lon': -120, 'lat': 0}, {'lon': -120, 'lat': -25}] no longer works. It gives the error:

 TypeError: Object of type int64 is not JSON serializable

When the numbers are converted to floats, everything works: [{'lon': -120.0, 'lat': -25.0}, {'lon': -95.0, 'lat': -25.0}, {'lon': -95.0, 'lat': 0.0}, {'lon': -120.0, 'lat': 0.0}, {'lon': -120.0, 'lat': -25.0}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions