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.)
.
-
see gis.stackexchange.com/questions/57635/…– geneMay 10, 2013 at 19:38
1 Answer
Found an answer after mailing to the author of this library: just use w.record(*attrs)
.