Skip to content

geopandas to ibis.memtable #7269

Answered by cpcloud
ozgurkalan asked this question in Q&A
Sep 30, 2023 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

As of https://github.com/ibis-project/ibis/releases/tag/7.2.0 (pip install ibis-framework==7.2.0) we have the ability read GeoJSON using DuckDB:

In [35]: from ibis.interactive import *

In [36]: con = ibis.duckdb.connect()

In [37]: t = con.read_geo("ci/ibis-testing-data/geojson/zones.geojson")

In [38]: t[["zone", "geom"]]
Out[38]:
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ zone                                                                               ┃ geom                                                                             ┃
┡━━━━━━━━━━━━━━━━━━━━━…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ozgurkalan
Comment options

Comment options

You must be logged in to vote
1 reply
@ozgurkalan
Comment options

Answer selected by cpcloud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
geospatial Geospatial related functionality
2 participants