pyogrio icon indicating copy to clipboard operation
pyogrio copied to clipboard

ENH: Support list data types

Open jorisvandenbossche opened this issue 4 years ago • 3 comments

From https://github.com/geopandas/geopandas/issues/2113

GDAL has data types for IntegerList, RealList, StringList (https://gdal.org/api/vector_c_api.html#_CPPv412OGRFieldType). Currently those are not supported, but in theory that could be mapped to a column with python lists (that is never going to be super performance, since it's an object ndarray with python lists, and it might also give some complexity to convert this in the cython code)

jorisvandenbossche avatar Sep 15 '21 09:09 jorisvandenbossche

Any workaround for this (without using another file type)? Currently the fields with list/array content are simply dropped, I had to convert geojson to gpkg

prusswan avatar Feb 15 '25 07:02 prusswan

This should work using the Arrow API, right?

kylebarron avatar Feb 15 '25 16:02 kylebarron

As Kyle said, please try with read_dataframe(..., use_arrow=True)...

theroggy avatar Feb 15 '25 17:02 theroggy