[GRASS-dev] Default content for the "answer" to G_OPT_F_INPUT

Helmut Kudrnovsky hellik at web.de
Tue Apr 17 07:40:59 PDT 2018


NikosAlexandris wrote
> Yet my intention was/is to use a hardcoded string of rules. Not a path to
> a file.
> 
> It appears the only option is to document, the rules, and suggest a copy
> and paste in to the corresponding field.
> 
> Can the parser be extended in this regard with yet another option? Perhaps
> I missed some existing option (?).

https://trac.osgeo.org/grass/browser/grass-addons/grass7/vector/v.habitat.dem/v.habitat.dem.py#L568

in this script I write out a text file for a predefined color rule and later
on

https://trac.osgeo.org/grass/browser/grass-addons/grass7/vector/v.habitat.dem/v.habitat.dem.py#L579

I use it. it's an ugly hack, maybe you can use it without writing a text
file.





-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html


More information about the grass-dev mailing list