Skip to content

Remove use of fiona#1057

Closed
peanutfun wants to merge 3 commits into
developfrom
remove-fiona
Closed

Remove use of fiona#1057
peanutfun wants to merge 3 commits into
developfrom
remove-fiona

Conversation

@peanutfun
Copy link
Copy Markdown
Member

@peanutfun peanutfun commented May 28, 2025

Changes proposed in this PR:

  • Remove explicit use of fiona package

This PR fixes #

PR Author Checklist

PR Reviewer Checklist

@peanutfun
Copy link
Copy Markdown
Member Author

@emanuel-schmid Why do we want to remove the use of Fiona at all? In the tests, I have the issue that pyogrio (the GeoPandas fallback for fiona) seems to be less compatible with the data. Especially reloading the shape files with the cartopy shapereader (which uses pyshp if fiona is not installed) seems to be troublesome. Maybe we should just add fiona to the dependencies?

@peanutfun peanutfun marked this pull request as draft May 28, 2025 09:56
@emanuel-schmid
Copy link
Copy Markdown
Collaborator

The plan is not to remove the use of fiona, altogether but the explicit dependency. I was hoping that we can leave it to GeoPandas to establish a proper environment. In the past there have been hick-ups with the order of import executions, so there seem to be conflicts.
In any case, i consider fiona as low level, and if there is no good reason to be explicit about low level packages we should restrict ourselves to high level ones.
However if there is good reason, as you say, we should perhaps write some tests instead. (;

@peanutfun
Copy link
Copy Markdown
Member Author

@emanuel-schmid With geopandas v1.0, I had to add fiona explicitly to the dependencies to make the tests pass (even though I removed all explicit use of fiona in the code)

@peanutfun
Copy link
Copy Markdown
Member Author

@emanuel-schmid How do we continue? I think it's a bit confusing that we remove all explicit uses of fiona and then add it as dependency 😅 I suggest we do not change the code but simply add fiona as dependency. Then we can upgrade to geopandas v1.

@peanutfun
Copy link
Copy Markdown
Member Author

We decided to add fiona as explicit dependency instead. Closing.

@peanutfun peanutfun closed this Jul 10, 2025
@emanuel-schmid emanuel-schmid deleted the remove-fiona branch February 25, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants