Unable to load GeoArrow into kepler when using "use_arrow=True"
- Dominant language
- TypeScript
- Stars
- 12k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 66
Description
I'm using Kepler.gl Python 3.10 package version: 0.3.4a3.
getting error when adding data of geoarrow type. "ValueError: Invalid file path or buffer object type: "
**To Reproduce**
Steps to reproduce the behavior:
1. load kepler
2. Add data
3. code "import geoarrow.pyarrow as ga
import pyarrow as pa
geo_array = ga.as_geoarrow(["POINT (-83.026753 42.513481)"])
id_array = pa.array([1], type=pa.int64())
table = pa.Table.from_arrays([id_array, geo_array], ['id', 'geometry'])
from keplergl import KeplerGl
map2 = KeplerGl(height=800, width=600)
map2.add_data(data=table, name="test", use_arrow=True)
map2"
**Expected behavior**
**Screenshots**
_ValueError: Invalid file path or buffer object type:
.. python3.10/site-packages/keplergl/keplergl.py:221, in KeplerGl.add_data(self, data, name, use_arrow)
220 try:
--> 221 gdf = geopandas.read_file(data, driver='GeoJSON')
222 copy.update({name: gdf})_
**Environment (please complete the following information):**
- Python version: python3]
- keplergl Widget version : 0.3.4a3
**Additional context**
Any example avaialable for loading GeoArrow points and linestring available that we can follow?
Thank you
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.