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.8k4 gold badges48 silver badges87 bronze badges
asked May 10, 2013 at 19:29
1

1 Answer 1

4

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

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.