Skip to content
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

CI: Fix minimal test env and remove deps on pandas / geopandas #134

Merged
merged 6 commits into from
Jun 19, 2022

Conversation

brendan-ward
Copy link
Member

Supersedes #132 (thanks @jorisvandenbossche !)

Cleans up a dependency on pandas outside of our try / catch block for GeoPandas, and uses raw IO methods for preparing test files instead of geopandas

pyogrio.write_dataframe(gdf, dst_path)
meta["spatial_index"] = False
# allow mixed Polygons/MultiPolygons type
meta["geometry_type"] = "Unknown"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one line is a change compared to what was there before? Or did write_dataframe infer such a geometry type? (I would have expected that it would infer "MultiPolgyon" and set promote_to_multi to true)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The detection and promotion happens in write_geodataframe and doesn't happen in the case of the raw write.

With a little bit of refactoring we could move that into write instead (I think this was even suggested when that was first added), but I didn't think we needed to do so prior to 0.4 (changes noted in the changelog are specific to GeoDataFrame)

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