[GRASS-dev] Re: test of v.area.thematic

Moritz Lennert mlennert at club.worldonline.be
Fri Jan 4 06:37:54 EST 2008


On 04/01/08 13:27, Glynn Clements wrote:
> Moritz Lennert wrote:
> 
>> I think that 
>> for those who will use a gui we need to create a special thematic 
>> mapping gui which combines all the modules doing something like (no idea 
>> of the real python commands):
>>
>> breaks=os.system('v.class -g ...')
>> legend=os.system('d.area.thematic -l ... breaks=breaks')
> 
> The os.system() call should be avoided in favour of the
> subprocess.Popen class.

Yes, sorry, this was meant as a rough example. That's why I said that I 
had no idea of how to really do this in Python (and I plead guilty to 
the laziness for not looking it up since you have mentioned this quite 
often...).

Moritz


More information about the grass-dev mailing list