[GRASS-user] python parse_command
Pietro
peter.zamb at gmail.com
Mon Feb 19 09:49:46 PST 2018
Thank you Anna I did not noticed the underscor...
On 19 Feb 2018 4:41 p.m., "Jonathan Reith" <reith at mundialis.de> wrote:
print(compregion)
g.region(compregion,res="1", flags="p")
you are hassling the dictionary to a region, but you have to unpack the
dictionary just write:
...
g.region(res="1", flags="p", **compregion)
the two * unpack the dictionary.
Have fun!
Pietro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20180219/3fd85aae/attachment.html>
More information about the grass-user
mailing list