[GRASS-windows] grass.run_command issue for display a vector and its labels

Liu, Huili HLiu at ap.org
Mon Nov 5 07:56:38 PST 2012


Hello,

I am running an issue to display a vector and overlay its label on the top by using grass.run_command (WinGrass-6.4).
For example,
grass.run_command('d.vect', map='my_shape')
grass.run_command('d.labels', labels='my_shape_labels')

First one created a default.png but second command overwrote default.png with the labels only.
Can anyone point to me if one grass.run_command can handle multiple commands like
grass.run_command(('d.vect', map='my_shape';  'd.labels', labels='my_shape_labels') to generate one default.png with two layers information such as vector and its labels? Or is there any better way to do it? I was thinking about v.overlay but I look for the above possibility.

Thanks in advance.
Willie








The information contained in this communication is intended for the use
of the designated recipients named above. If the reader of this 
communication is not the intended recipient, you are hereby notified
that you have received this communication in error, and that any review,
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this communication in error, please 
notify The Associated Press immediately by telephone at +1-212-621-1898 
and delete this email. Thank you.
[IP_US_DISC]

msk dccc60c6d2c3a6438f0cf467d9a4938
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-windows/attachments/20121105/d4b82faa/attachment.html>


More information about the grass-windows mailing list