Fiona icon indicating copy to clipboard operation
Fiona copied to clipboard

Support add new columns to gpkg in append mode

Open latot opened this issue 2 years ago • 1 comments

Hi, I'm using Fiona from GeoPandas, actually there is the append mode, but if the data we want to append has columns that does not exists will fails. I'm constructing a big gpkg file but I don't have a way to know all the columns beforehand.

  File "fiona/ogrext.pyx", line 1280, in fiona.ogrext.WritingSession.writerecs
ValueError: Record does not match collection schema: dict_keys(list_with_column_names)

Thx!

latot avatar Jan 04 '23 14:01 latot

More discussion here: https://fiona.groups.io/g/dev/topic/96037003#37.

I think this could be possible for 2.0.

sgillies avatar Feb 09 '23 17:02 sgillies