#2250: d.text unsupported from command line
------------------------+---------------------------------------------------
Reporter: veroandreo | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.1.0
Component: Display | Version: unspecified
Keywords: d.text | Platform: Linux
Cpu: x86-64 |
------------------------+---------------------------------------------------
Hi,
d.text appears as an unsupported command in grass7 when
used from command line. It does work when used from GUI, but for a loop
it's really handy to have it running in the shell.
In the main GUI (`g.gui`, wxGUI):
{{{
d.rast elevation
d.text text="Hola" at=30,30
}}}
results in error dialog with:
{{{
Command 'd.text' not yet implemented in the WxGUI. Try adding it as a
command layer instead.
}}}
Adding a command layer ("`d.text text="Hola" at=30,30`") works.
My first guess is that layers in `d.mon` wxGUI backend are added by
standard mechanism, the same as in GUI. While command layers are added
separately. The questing is if just adding all layers in `d.mon` wxGUI
backend as command layers would solve the problem. Can this be so simple,
or are there some consequences? I can see problem with all dependent
functions in wxGUI (e.g. profile) which accepts rasters or vectors maps
from layers currently loaded into the map display, so there apparently
need to know the type of the layer, just command layer is not enough.
By the way, I'm actually not sure if you can safely use `d.*` commands
with `d.mon wx*` in script (or for loop in command line). This is a topic
for different ticket, however.
''Vero, note that you can use `{{{` and `}}}` to add source code listings
(verbatim, list of commands) which is simpler and nicer than `[[BR]]`.
Generally, you can use Trac WikiFormatting.''