Skip to content

Conversation

@paleolimbot
Copy link
Contributor

@paleolimbot paleolimbot commented Jan 23, 2025

This PR supports table-like objects in to_geopandas(), ensuring that we use GeoPandas' methods first and fall back on our own if GeoPandas fails (because it's an old version or because it doesn't support the type in question).

import pyarrow as pa
import geoarrow.pyarrow as ga
table = pa.table({"geometry":  ga.as_geoarrow(["POINT (0 1)"])})
ga.to_geopandas(table)

Closes #18.

@paleolimbot paleolimbot marked this pull request as ready for review January 23, 2025 21:33
@paleolimbot paleolimbot merged commit 9d591c1 into geoarrow:main Jan 25, 2025
10 checks passed
@paleolimbot paleolimbot deleted the geopandas-integration2 branch January 25, 2025 21: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.

to_geopandas method returns an error

1 participant