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.)
.
Chad Cooper
12.8k4 gold badges48 silver badges87 bronze badges
asked May 10, 2013 at 19:29
-
see gis.stackexchange.com/questions/57635/…gene– gene2013年05月10日 19:38:41 +00:00Commented May 10, 2013 at 19:38
1 Answer 1
Found an answer after mailing to the author of this library: just use w.record(*attrs)
.
Chad Cooper
12.8k4 gold badges48 silver badges87 bronze badges
answered May 10, 2013 at 20:00
lang-py