[GRASS-user] Displaying layers - GRASS 6.4.0RC7 with MSYS

Hello!

I natively use GRASS in ubuntu but wanted to try it in windows as well. I use GRASS 6.4.0RC7 with MSYS and referring to Open Source GIS - A GRASS Approach I wanted to display layers using following commands for the sample North Carolina dataset -

g.region rast=elevation -p
d.erase

d.rast elevation
d.his h=elevation i=elevation_shade and so on…

Prior to all these there was d.mon x0 command. It resulted in an error. It was also mentioned that X server system does not work in windows and I can use gis.m. I want it to display in wxGUI. The commands I typed in gave no results. The map display of wxGUI interface gives no output unless I key in the commands one after another in GRASS Layer Manager under “Cmd>”. Its a difficult process as I have to erase the previous command before entering next one.

Is there any other way to get dynamic outputs from MSYS shell interface or is using GUI the only way. I am not interested in using the windows command interface or text interface to grass.

Regards,

Chethan S.

Chethan S wrote:

I natively use GRASS in ubuntu but wanted to try it in windows as well. I
use GRASS 6.4.0RC7 with MSYS and referring to Open Source GIS - A GRASS
Approach I wanted to display layers using following commands for the sample
North Carolina dataset -

g.region rast=elevation -p
d.erase

d.rast elevation
d.his h=elevation i=elevation_shade and so on...

Prior to all these there was d.mon x0 command. It resulted in an
error.

d.mon is the main feature which doesn't work natively in Windows. All
d.* commands operating by generating an image file (by default, the
file map.png in the current directory). For screen display, use one of
the GUIs, or open the map.png file in a viewer which provides a quick
way to reload the current file.

Also, note that d.mon has been removed altogether in GRASS 7.

--
Glynn Clements <glynn@gclements.plus.com>

On Sun, Aug 29, 2010 at 6:43 PM, Glynn Clements <glynn@gclements.plus.com> wrote:

Chethan S wrote:

I natively use GRASS in ubuntu but wanted to try it in windows as well. I
use GRASS 6.4.0RC7 with MSYS and referring to Open Source GIS - A GRASS
Approach I wanted to display layers using following commands for the sample
North Carolina dataset -

g.region rast=elevation -p
d.erase

d.rast elevation
d.his h=elevation i=elevation_shade and so on…

Prior to all these there was d.mon x0 command. It resulted in an
error.

d.mon is the main feature which doesn’t work natively in Windows. All
d.* commands operating by generating an image file (by default, the
file map.png in the current directory). For screen display, use one of
the GUIs, or open the map.png file in a viewer which provides a quick
way to reload the current file.

Also, note that d.mon has been removed altogether in GRASS 7.


Glynn Clements <glynn@gclements.plus.com>

Hello again!

Is displaying on x0 or cairo or png displays using d.mon, the only way to display layers from command line even in linux? Isn’t there a way to type commands in terminal and get the layers displayed in GRASS GIS Map display in wxGUI?

Regards,

Chethan S.

Hi,

2010/8/29 Chethan S <chethanuniversal@gmail.com>:

g.region rast=elevation -p
d.erase

d.erase won't work in wxGUI, click on button "Erase display" in the
map display toolbar.

d.rast elevation
d.his h=elevation i=elevation_shade and so on...

use gis.m. I want it to display in wxGUI. The commands I typed in gave no
results. The map display of wxGUI interface gives no output unless I key in
the commands one after another in GRASS Layer Manager under "Cmd>". Its a

d.rast & d.his should work. If you type these commands in wxGUI
command line new map layer should be added to the layer tree and the
map displayed in the map canvas.

difficult process as I have to erase the previous command before entering
next one.

Is there any other way to get dynamic outputs from MSYS shell interface or
is using GUI the only way. I am not interested in using the windows command
interface or text interface to grass.

Try improved wxGUI including advanced command line prompt in GRASS 6.5 [1].

Martin

[1] http://josef.fsv.cvut.cz/wingrass/grass65/

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa

Chethan S wrote:

> d.mon is the main feature which doesn't work natively in Windows. All
> d.* commands operating by generating an image file (by default, the
> file map.png in the current directory). For screen display, use one of
> the GUIs, or open the map.png file in a viewer which provides a quick
> way to reload the current file.
>
> Also, note that d.mon has been removed altogether in GRASS 7.

Is displaying on x0 or cairo or png displays using d.mon, the only way to
display layers from command line even in linux? Isn't there a way to type
commands in terminal and get the layers displayed in GRASS GIS Map display
in wxGUI?

At present, there isn't a mechanism to "remote control" the GUI from
the command line.

--
Glynn Clements <glynn@gclements.plus.com>