Toblerity/Fiona — Issue #6: Read-write access to data on disk
Author: sgillies
Created: 2012-01-06 18:55:03+00:00
State: open

Currently, Fiona supports read ("r"), write ("w"), and append ("a") modes in the same manner as Python's file object does. How important is "r+" access to you? If we were to add it, it would probably be done in the Python file manner again:

with collection("/path/to/data.shp", "r+") as c:
c.seek_feature(10)
c.write({...})

Unsorted arguments against:

A lot of OGR format drivers don't support random access anyway and have to fake it. I haven't been able to find a breakdown of which do and which don't. When they do have to fake it, it seems like any benefits of "r+" access are lost.