-
Notifications
You must be signed in to change notification settings - Fork 209
Closed
Description
Expected behavior and actual behavior.
Opening a file-descriptor (BytesIO, StringIO, or an openned file doesn't work with the append mode.
This is normal see implementation here: https://github.com/Toblerity/Fiona/blob/master/fiona/__init__.py#L212 and https://github.com/Toblerity/Fiona/blob/master/fiona/__init__.py#L212
Steps to reproduce the problem.
import fiona
from io import BytesIO
fp = BytesIO(b"some random valid geopackage bytes")
with fiona.open(fp, 'a', driver="Gpkg", schema={"something": "valid"}) as gpkg_file:
pass
Operating system
Linux (Arch)
Fiona and GDAL version and provenance
1.8.20 manylinux1 wheel installed from PyPI using pip version 21.1.3.
GDAL 3.3, installed via package manager.