I'm using pyshp for creating a shapefile. I need to populate tens of fields with values using the record()
method of shapefile.Writer
. I have those values as a list, but have no idea how to send it to the method without enumerating them as w.record(values[0], values[1], etc.)
.
[GIS] How to add attributes to shapefile with Python and pyshp
pyshppython
Best Answer
Found an answer after mailing to the author of this library: just use
w.record(*attrs)
.