Skip to content

pyshp v. 1.2.11 reads non-string field values as None #108

Closed
@martinburch

Description

@martinburch

This is a regression from 1.2.10, see
https://gis.stackexchange.com/questions/252104/python-pyshp-reads-some-field-values-as-none?noredirect=1#comment396899_252104

Reading the records of AL082017_pts.shp in a recent hurricane path file with pyshp results in a lot of None.

Here's the first record:

sf = shapefile.Reader('AL082017_pts.shp')
print sf.record(0)
Output:

['GENESIS014', None, None, '08', None, '0600', None, 'al', None, 'DB', None, None, None, None]
The correct field values, as can be seen in the dbf, are:

GENESIS014 2017080206 2017 08 2 0600 1012 al 8 DB 20 0 9.5 -13

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions