You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some file types it is possible to write "custom" FID's by including an appropriate column in the input dataset, e.g. a column "fid" for GeoPackage.
However, when this is applied using write_dataframe with use_arrow=True this error is thrown: Inconsistent values of FID and field of same name.
EDIT: the conclusions of the upstream issue was that:
there was a bug that lead to the error, which is now fixed
in pyogrio, the case when there is an "fid" column present isn't handled really well. For formats that explicitly store the FID (e.g. GPKG) columns with the "correct" names (e.g. "fid" for GPKG) are automatically used by GDAL for the FID field. But, in pyogrio, these columns are also added as an ordinary column, which is redundant. The double use of the column is also what triggers the bug in GDAL mentioned in 1., so if this behaviour is changed, the bug isn't triggered anymore: BUG: fix writing fids to e.g. GPKG file with use_arrow #511
For some file types it is possible to write "custom" FID's by including an appropriate column in the input dataset, e.g. a column "fid" for GeoPackage.
However, when this is applied using
write_dataframe
withuse_arrow=True
this error is thrown:Inconsistent values of FID and field of same name
.An issue for this was opened upstream in GDAL: OSGeo/gdal#11527
EDIT: the conclusions of the upstream issue was that:
Originally noticed in geofileops/geofileops#392
The text was updated successfully, but these errors were encountered: