-
Notifications
You must be signed in to change notification settings - Fork 901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: append new df to old GDB file failed #3285
Comments
I'm not very familiar with the GDB file format, and I also want to ask why the directory I generated is a directory that contains sub files. shouldn't it have only one main file? |
ESRI File GDB is structured as a directory containing a lot of files. That is entirely expected here. I'm not sure about why Fiona is failing here (probably an error to report there instead), as you are passing the same dataset each time, but this should be possible using |
Although the geometry in my geopandas df is a linestring and polygon, when it is written to gdb and read out again, it shows that the geometry is a multilining and multipolygon, which causes the prompt format to not match and results in failure. Therefore, my current solution is to convert the linestring and polygon of the geometry in my df to multi (xx) |
i generate source openFileGDB with a geopandas dataframe used:
gpd_linestring_df.to_file(filename2, driver="OpenFileGDB")
and dtyps:
uid object
agmach_id object
calc_date object
work_start_time object
work_end_time object
work_area float64
geometry geometry
agmach_type_name object
pro_ent_name object
mdl_name object
feed_rate float64
machine_width float64
area_name object
parent_area_name object
then i with the same type df,used:gpd_linestring_df.to_file(filename2, driver="OpenFileGDB",mode='a')
i am sure the diff df is the same dtyps,why failed with:
File "fiona\ogrext.pyx", line 1397, in fiona.ogrext.WritingSession.writerecs
ValueError: Record does not match collection schema: ['uid', 'agmach_id', 'calc_date', 'work_start_time', 'work_end_time', 'work_area', 'agmach_type_name', 'pro_ent_name', 'mdl_name', 'feed_rate', 'machine_width', 'area_name', 'parent_area_name'] != []
The text was updated successfully, but these errors were encountered: