Skip to content

How to get the field name for data? #256

@jiaoL06

Description

@jiaoL06

What's your question?

when I create the shapefile,such as:
w = shapefile.Writer(shapname)
w.field("name1", "C")
w.linez([data1])
w.record("cross1")
w.field("name2", "C")
w.linez([data2])
w.record("line1")
w.close()
Then I read the shapefile:
sf = shapefile.Reader(shapname)
datas = sf.shapes()
for data in datas:
points = data.points
x, y = zip(*points)
z = data.z

How to get the field name for data(x,y,z)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions