-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove version restriction on geopandas, and remove fiona optional dependency #488
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @angusmcb, thank you for the well-written PR. I have a couple questions before merging:
- I noticed that in
gis.rst
that trailing 0s in the doctest outputs are removed. I am assuming that this is a feature of geopandas>=1.0 - can you confirm that? - Can you explain the need to switch from shapefile folders to the individual ".shp" files? Is this a requirement of geopandas>=1?
- Why the change in
geospatial.py
? Re-reading through the function, we don't make any mutations to the B dataframe, so I don't think a copy is necessary.
Thanks for the review ! To respond to your questions:
|
And just to add on point 3 that it still worked with folders for shapefiles when writing the first time, but didn't overwrite existing shapefiles. This may be why it hasn't been removed from the geopandas documentation. |
Thanks for the followup @angusmcb.
|
Ah, I understand what you mean by this now. Yes I run into the same error after running |
…nto intersection-fix
Ok I've put in some folder-saving logic so the functionality should be back to how it used to be. |
Summary
These changes fix the error which were keeping geopandas < 1.0
Notably, this also means fiona is no longer used, so removed from the optional dependency list
The only functional change is that it's now necessary to point to a specific shapefile when writing, rather than a directory to write to.
This contributes to #422
It completely duplicates #487
Tests and documentation
Mention of shapefiles writing updated.
Doctests updated.
Acknowledgement
By contributing to this software project, I acknowledge that I have reviewed the software quality assurance guidelines and that my contributions are submitted under the Revised BSD License.