Skip to content

Support optional schema properties for writing shapefiles #702

@klinden

Description

@klinden

Expected behavior and actual behavior.

Desired: Given the following schema: [ 'ID', 'Name', 'Description'], a record { 'id': 1, 'Name': 'John Doe' } should successfully write to the shapefile either with an empty value for Description or possibly a pre-defined default value.

Actual: "ValueError: Record does not match collection schema" is raised.

Operating system

Mac OS X 10.14.2.

Fiona and GDAL version and provenance

Fiona 1.8.4 MacOS wheel installed with pip 18.1, Python 3.7.2
GDAL 2.3.1 installed via Homebrew

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions