Add python 3.14+ support#312
Conversation
Alas, but current implementation of fiona doesn't support python 3.14. So, replaced fiona with pyogrio/geopandas
|
Thanks for creating this PR, we are currently running into this issue with updating another package to Python 3.14, since it has rasterstats as a dependency: Deltares/HYDROLIB#224. @perrygeo would it be possible to merge this PR and create a new release, or should we look for alternative solutions? |
| def pyogrio_generator(obj,layer=0): | ||
| collection=loads(read_dataframe(obj,layer).to_json()) | ||
| for feat in collection["features"]: | ||
| yield feat |
There was a problem hiding this comment.
This will load all the features into memory at once. Consider a chunked approach that can yield features but keep memory footprint low.
|
alternative (and some of the issues with pyogrio) explained here: #314 |
|
Check out #314 for the full implementation - now released in version pyogrio is now the default, should have better wheel availability and hopefully better performance too. Users can opt into the fiona engine if needed for full backwards compatibility. Tested on Python 3.14. I'll close this one if you don't mind. Thanks for bringing it to my attention and suggesting |
Alas, but current implementation of fiona doesn't support python 3.14. So, replaced fiona with pyogrio/geopandas