Skip to content

Writing to only one shapefile type throwing an error #237

Closed
@mem00

Description

@mem00

w = shapefile.Writer(shp="/path/tofile.shp")

as per the documentation

w = shapefile.Writer(dbf='shapefiles/test/onlydbf.dbf')
w.field('field1', 'C')

throws

ShapefileException: No file-like object available.

when trying to write a polygon

w.poly(geometry)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions