Skip to content

RuntimeWarning: invalid value encountered in create_collection (only in cartopy 0.25) #2646

@guidocioni

Description

@guidocioni

I have this warning popping up multiple times whenever I do ANYTHING in cartopy.

/Users/guidocioni/miniforge3/envs/default/lib/python3.13/site-packages/shapely/creation.py:730: RuntimeWarning: invalid value encountered in create_collection return lib.create_collection(geometries, np.intc(typ), out=out, **kwargs)

It is coming from shapely but I just noticed that, leaving the environment as is (including shapely, goes...) and just downgrading cartopy from 0.25 to 0.24 fixes it (the warning disappears).

Either I'm not searching properly, or nobody has experienced this because I couldn't find any mention anywhere in the issues or online.

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