Open codeananda opened 5 months ago
Can you show the output of geopandas.show_versions()
?
SYSTEM INFO
-----------
python : 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
executable : C:\Users\User\AppData\Local\pypoetry\Cache\virtualenvs\big-bertha-O8kHtzvf-py3.10\Scripts\python.exe
machine : Windows-10-10.0.22621-SP0
GEOS, GDAL, PROJ INFO
---------------------
GEOS : 3.11.2
GEOS lib : None
GDAL : 3.6.4
GDAL data dir: C:\Users\User\AppData\Local\pypoetry\Cache\virtualenvs\big-bertha-O8kHtzvf-py3.10\lib\site-packages\fiona\gdal_data
PROJ : 9.3.0
PROJ data dir: C:\Users\User\AppData\Local\pypoetry\Cache\virtualenvs\big-bertha-O8kHtzvf-py3.10\lib\site-packages\pyproj\proj_dir\share\proj
PYTHON DEPENDENCIES
-------------------
geopandas : 0.14.1
numpy : 1.26.2
pandas : 2.1.4
pyproj : 3.6.1
shapely : 2.0.2
fiona : 1.9.5
geoalchemy2: None
geopy : None
matplotlib : 3.8.2
mapclassify: None
pygeos : None
pyogrio : 0.7.2
psycopg2 : 2.9.9 (dt dec pq3 ext lo64)
pyarrow : None
rtree : 1.1.0
I noticed this as well, and it has been fixed but not released yet: https://github.com/geopandas/pyogrio/issues/324
Ah, that's the reason I didn't see it (was testing with main), was just going to look at our recent commits. Thanks for the link.
Wonderful :) any idea when this will be released?
We haven't set a specific date for the next release, but it would be ideal to have it out in the next couple of weeks.
If I try to write a gdf with a non-sequential index to shapefile using pyogrio, I sometimes get a
KeyError
. For some reason it occurs if I have a datetime column but if I remove it, it goes away.Resetting the index before writing also solves the problem. But it's strange that I would need to do this.
Reproducible example
It also warns me that DESIG_DATE is created as a date even though DateTime was requested
Warning
Stacktrace