Hi,
I usually run GRASS from the command line (via Emacs), and create maps
via d.mon. Something seems to have changed since last I did this (quite
a while back), and I can't figure out how to measure distances on my
map.
For example, if I open a monitor and plot a map:
d.mon start=wx0
d.vect map=states type=boundary
I then want to interactively measure a distance between two points on
the map. So I select the 'Analyze map' button, click and drag to draw my
line, and ... nothing. (I used to do this from the command line via
d.measure, which is gone now?) The line is drawn, but I get no output,
either on the map, in the status bar, or in the terminal, to indicate
how long the line is. The help suggests that the distance will be
displayed in the command output window frame, but there isn't one - can
I open this somehow?
Alternatively, if I start from
g.gui
And build my map via the GUI, I do have a command output window where
measurements are reported. But if I do this, I can't issue drawing
commands from the command line anymore, and have to use the GUI.
Have I missed a something, or is interactively querying maps now only
available via the GUI?
Best,
Tyler
GRASS 7.0.3 (2016) installed via Debian package grass 7.0.3-2
--
plantarum.ca
On Fri, Mar 18, 2016 at 10:20 AM, Tyler Smith <tyler@plantarum.ca> wrote:
I then want to interactively measure a distance between two points on
the map. So I select the 'Analyze map' button, click and drag to draw my
line, and ... nothing. (I used to do this from the command line via
d.measure, which is gone now?) The line is drawn, but I get no output,
either on the map, in the status bar, or in the terminal, to indicate
how long the line is. The help suggests that the distance will be
displayed in the command output window frame, but there isn't one - can
I open this somehow?
With d.mon the things written to the Command Console tab in main GUI
(g.gui) are written to the stdout, i.e. they should be visible in your
command line. This was not possible in 6.4 with wxGUI but it is possible
with version 7.
Alternatively, if I start from
g.gui
And build my map via the GUI, I do have a command output window where
measurements are reported. But if I do this, I can't issue drawing
commands from the command line anymore, and have to use the GUI.
You can actually use commands in the Command Console tab (including the d.*
command) but it is not the same as the standard command line (it has pros
and cons).
On Fri, Mar 18, 2016, at 12:57 PM, Vaclav Petras wrote:
With d.mon the things written to the Command Console tab in main GUI (g.gui) are written to the stdout, i.e. they should be visible in your command line. This was not possible in 6.4 with wxGUI but it is possible with version 7.
This works from a terminal (i.e., xterm), but it doesn’t seem to work from within Emacs (using GRASS-mode, which is built on shell-mode/comint-mode). Which means it’s my fault! Strange, though, as other STDOUT text comes through just fine. I do get a ^G
symbol where the distance should appear, suggesting GRASS is sending a ‘BELL’ symbol, which may be confusing Emacs. I’ll have to look into this.
Thanks,
Tyler