4

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,714
  • 4
  • 46
  • 87
Michal Zimmermann
  • 4,242
  • 22
  • 39
  • see http://gis.stackexchange.com/questions/57635/updating-attributes-using-pyshp/57797 – gene May 10 '13 at 19:38

1 Answers1

4

Found an answer after mailing to the author of this library: just use w.record(*attrs).

Chad Cooper
  • 12,714
  • 4
  • 46
  • 87
Michal Zimmermann
  • 4,242
  • 22
  • 39