On 21/08/18 12:47, Stefan Blumentrath wrote:
Hi Nikos,

If you are interested in dictionary output you could do:

category_labels = grass.parse_command('r.category', map='youmap', 
delimiter='\t')

Right, nice solution !

For those not very familiar with the scripting library: the "delimiter" option here is an option to parse_command, not to r.category. It decides which delimiter parse_command should use for deciding what is a key and what is a value.

Moritz

_______________________________________________
grass-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to