pynsee icon indicating copy to clipboard operation
pynsee copied to clipboard

geodataframe parquet storage exception

Open tgrandje opened this issue 6 months ago • 5 comments

Hello @hadrilec @tfardet

There seems to be a bug on the parquet storage for geodataframes: geodataframes are not rightly handled by pandas/pyarrow.

It seems a simple try/except and geopandas overlay might do the trick. I'll check and propose a PR.

Sample code:

from pynsee.geodata import get_geodata
cities = get_geodata("ADMINEXPRESS-COG-CARTO.LATEST:commune")

The parquet file will not be written in the cache dir, even if pynsee says it was saved.

The warning was also not displayed and the culprit seems to be here. Do any of you remember why this was added in the first place?

(Sorry I'm not present on pynsee anymore, I've had too much on my plate. Hopefully it will be better before the end of this year)

tgrandje avatar Aug 06 '24 13:08 tgrandje