GRASS 6.4.0 RC3 wxpython : command ... not yet implemented (d.barscale etc)

6 messages Options
Embed this post
Permalink
Vladimir Goncharov-3

GRASS 6.4.0 RC3 wxpython : command ... not yet implemented (d.barscale etc)

Reply Threaded More More options
Print post
Permalink
Hello,

Sorry for silly question, but before I used to explore the GRASS  in
94-98 on X Window (Linux)  computer only. Now
I'm reading GRASS Book (3rd edition) and trying to run its examples on
Windows version. Unfortunately, I've discovered
 that some commands doesn't work while be started from command line.
For example, it is d.barscale command:
when I run
   d.barscale at=0,0
then pop-up window raises with the text
  (I) Command d.barscale not yet implemented'.
Of course, it is not true , because I can draw scale using menu item
'Add overlay'->'Add scalebar and north arrow' in display window.
Did  I miss something and some commands run only from menu in wxWindows
version?  Is there any list of such  commands?
Other commands, like d.his work perfectly (  BTW,does anybody know is
there menu item for this command? I can't find it:))

Sincerely yours,
VladimirGoncharov


_______________________________________________
grass-windows mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-windows
Moritz Lennert

Re: GRASS 6.4.0 RC3 wxpython : command ... not yet implemented (d.barscale etc)

Reply Threaded More More options
Print post
Permalink
On 23/02/09 08:25, Vladimir Goncharov wrote:
> Hello,
>
> Sorry for silly question, but before I used to explore the GRASS  in
> 94-98 on X Window (Linux)  computer only. Now
> I'm reading GRASS Book (3rd edition) and trying to run its examples on
> Windows version.

Which version ?

> Unfortunately, I've discovered
>  that some commands doesn't work while be started from command line.
> For example, it is d.barscale command:
> when I run
>    d.barscale at=0,0

(From) Where do you 'run' it ?

> then pop-up window raises with the text
>   (I) Command d.barscale not yet implemented'.
> Of course, it is not true , because I can draw scale using menu item
> 'Add overlay'->'Add scalebar and north arrow' in display window.

In this case d.barscale is called from within the GUI. But, yes, the
message is not entirely correct.

> Did  I miss something and some commands run only from menu in wxWindows
> version?  Is there any list of such  commands?

If you want to display something in the GUI Display window, then you
have to go through the GUI to do so, you cannot type d.* commands at the
Cmd> prompt of the GUI.

You can use d.* commands on the command line when you use direct
rendering [1].

> Other commands, like d.his work perfectly

Where and how does it work perfectly ?

(  BTW,does anybody know is
> there menu item for this command? I can't find it:))

It is not in the main menus, but in the 'Add raster layer' button menu.

Moritz
_______________________________________________
grass-windows mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-windows
Vladimir Goncharov-3

Re: GRASS 6.4.0 RC3 wxpython : command ... not yet implemented (d.barscale etc)

Reply Threaded More More options
Print post
Permalink
Hi,

Moritz Lennert wrote:
> On 23/02/09 08:25, Vladimir Goncharov wrote:
>> Hello,
>>
>> Sorry for silly question, but before I used to explore the GRASS  in
>> 94-98 on X Window (Linux)  computer only. Now
>> I'm reading GRASS Book (3rd edition) and trying to run its examples on
>> Windows version.
>
> Which version ?
Please look at the subject line: GRASS 6.4.0 RC3

>> when I run
>>    d.barscale at=0,0
>
> (From) Where do you 'run' it ?
>
Sorry, I don't know can I attach screenshots here? Anyway, the window is
called 'GRASS GIS Layer Manager (Experimental Prototype)'.
I entered commands in bottom line  marker 'Cmd>'
>
> In this case d.barscale is called from within the GUI. But, yes, the
> message is not entirely correct.
>
> If you want to display something in the GUI Display window, then you
> have to go through the GUI to do so, you cannot type d.* commands at
> the Cmd> prompt of the GUI.
But I can type
  d.his elevation i=elevation_shade
and
  d.vect roadsmajor
and it work prefectly. What is difference between d.his and d.barscale?
Is it documented?
>
> You can use d.* commands on the command line when you use direct
> rendering [1].
>
What is direct rendering?
>> Other commands, like d.his work perfectly
>
> Where and how does it work perfectly ?
>
> (  BTW,does anybody know is
>> there menu item for this command? I can't find it:))
>
> It is not in the main menus, but in the 'Add raster layer' button menu.
Sorry? I see d.shadedmap and r.his out there, but not d.his.  Probably
r.his does the same work, but it requires more arguments.

Again, I'm reading GRASS book and trying to run commands found in the
text ( 3rd chapter in this case). It seems that
I have to use stable version but not bleeding-edge one.

Vladimir


_______________________________________________
grass-windows mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-windows
Moritz Lennert

Re: GRASS 6.4.0 RC3 wxpython : command ... not yet implemented (d.barscale etc)

Reply Threaded More More options
Print post
Permalink
On 23/02/09 18:08, Vladimir Goncharov wrote:
>> Which version ?
> Please look at the subject line: GRASS 6.4.0 RC3

Sorry, missed that. Did you use the osgeo4w installer ?

>
>>> when I run
>>>    d.barscale at=0,0
>> (From) Where do you 'run' it ?
>>
> Sorry, I don't know can I attach screenshots here?

As long as its a small file, this is ok. Even better is to put
screenshots on a web site and link to it.

> Anyway, the window is
> called 'GRASS GIS Layer Manager (Experimental Prototype)'.
> I entered commands in bottom line  marker 'Cmd>'
>> In this case d.barscale is called from within the GUI. But, yes, the
>> message is not entirely correct.
>>
>> If you want to display something in the GUI Display window, then you
>> have to go through the GUI to do so, you cannot type d.* commands at
>> the Cmd> prompt of the GUI.
> But I can type
>   d.his elevation i=elevation_shade
> and
>   d.vect roadsmajor
> and it work prefectly.

Funny, here in GNU/Linux and with grass6 development version, d.his
works, but d.vect doesn't. For the latter, I first have to double click
on the vector layer and click on Apply for the vector layer to appear in
the Map Display...
Can't try on Windows right now.

> What is difference between d.his and d.barscale?
> Is it documented?

I don't know. Maybe due to the fact that d.barscale has some interactive
code for placement... CC'ing to the wxgui developers for comment.

>> You can use d.* commands on the command line when you use direct
>> rendering [1].
>>
> What is direct rendering?

When direct rendering is "activated", you can type d.* commands at the
command line and the result is rendered into a file, instead of the
screen. See

http://grass.osgeo.org/grass64/manuals/html64_user/variables.html#dirrend
and
http://grass.osgeo.org/grass64/manuals/html64_user/pngdriver.html

To use this, you have to use GRASS via the command line.

>> (  BTW,does anybody know is
>>> there menu item for this command? I can't find it:))
>> It is not in the main menus, but in the 'Add raster layer' button menu.
> Sorry? I see d.shadedmap and r.his out there, but not d.his.  Probably
> r.his does the same work, but it requires more arguments.

Click on the button circled in red on:
http://geog-pc40.ulb.ac.be/grass/misc/GISManager.png

You then get a menu, of which one choice is "Add HIS layer" which opens
the d.his dialogue window and adds a layer to the GIS Manager.

>
> Again, I'm reading GRASS book and trying to run commands found in the
> text ( 3rd chapter in this case). It seems that
> I have to use stable version but not bleeding-edge one.

Well, for windows, the bleeding-edge one is probably much more stable
than any older ones.

You could try using the gis.m GUI instead of the wx GUI. For that you
need to find your .grassrc6 file (normally in your home directory, which
under windows is often in c:\Documents and settings\UserName and change
the setting of the GRASS_GUI variable to tcltk and then restart GRASS.

Moritz
_______________________________________________
grass-windows mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-windows
Vladimir Goncharov-3

Re: GRASS 6.4.0 RC3 wxpython : command ... not yet implemented (d.barscale etc)

Reply Threaded More More options
Print post
Permalink

>> Please look at the subject line: GRASS 6.4.0 RC3
>
> Sorry, missed that. Did you use the osgeo4w installer ?
>
Well, I do. But I made some work manually because I have custom
installation of Python and wxPython for other project.

>> But I can type
>>   d.his elevation i=elevation_shade
>> and
>>   d.vect roadsmajor
>> and it work prefectly.
>
> Funny, here in GNU/Linux and with grass6 development version, d.his
> works, but d.vect doesn't. For the latter, I first have to double
> click on the vector layer and click on Apply for the vector layer to
> appear in the Map Display...
> Can't try on Windows right now.
>
Sure, I add layers through 'Add vector' button usually, but I'm trying
to follow book in this case :)
>> What is difference between d.his and d.barscale?
>> Is it documented?
>
> I don't know. Maybe due to the fact that d.barscale has some
> interactive code for placement... CC'ing to the wxgui developers for
> comment.
Well, OK. I will try to find time and look at the code by myself. The
problem was that I was not sure if it is bug or feature.

>
>>> You can use d.* commands on the command line when you use direct
>>> rendering [1].
>>>
>> What is direct rendering?
>
> When direct rendering is "activated", you can type d.* commands at the
> command line and the result is rendered into a file, instead of the
> screen. See
>
> http://grass.osgeo.org/grass64/manuals/html64_user/variables.html#dirrend
> and
> http://grass.osgeo.org/grass64/manuals/html64_user/pngdriver.html
>
> To use this, you have to use GRASS via the command line.
>
Thanks! The main goal of my returning to GRASS is developing scripts to
automate process of creaing maps. That's why I am interested
to run commands.

>>> (  BTW,does anybody know is
>>>> there menu item for this command? I can't find it:))
>>> It is not in the main menus, but in the 'Add raster layer' button menu.
>> Sorry? I see d.shadedmap and r.his out there, but not d.his.  Probably
>> r.his does the same work, but it requires more arguments.
>
> Click on the button circled in red on:
> http://geog-pc40.ulb.ac.be/grass/misc/GISManager.png
>
> You then get a menu, of which one choice is "Add HIS layer" which
> opens the d.his dialogue window and adds a layer to the GIS Manager.
>
Oops!  I miss that. Thanks!

>>
>> Again, I'm reading GRASS book and trying to run commands found in the
>> text ( 3rd chapter in this case). It seems that
>> I have to use stable version but not bleeding-edge one.
>
> Well, for windows, the bleeding-edge one is probably much more stable
> than any older ones.
>
> You could try using the gis.m GUI instead of the wx GUI. For that you
> need to find your .grassrc6 file (normally in your home directory,
> which under windows is often in c:\Documents and settings\UserName and
> change the setting of the GRASS_GUI variable to tcltk and then restart
> GRASS.
Thanks again. As far as I understand, I can change this setting through
Config ->GRASS working environment menu. Can't I?

Vladimir
_______________________________________________
grass-windows mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-windows
Glynn Clements

Re: GRASS 6.4.0 RC3 wxpython : command ... not yet implemented (d.barscale etc)

Reply Threaded More More options
Print post
Permalink
In reply to this post by Vladimir Goncharov-3

Vladimir Goncharov wrote:

> >> when I run
> >>    d.barscale at=0,0
> >
> > (From) Where do you 'run' it ?
>
> Sorry, I don't know can I attach screenshots here? Anyway, the window is
> called 'GRASS GIS Layer Manager (Experimental Prototype)'.
> I entered commands in bottom line  marker 'Cmd>'

AFAIK, d.* commands aren't supposed to work there.

If you want the output from an arbitrary d.* command to be displayed
in the map window, create a command layer.

> Again, I'm reading GRASS book and trying to run commands found in the
> text ( 3rd chapter in this case). It seems that
> I have to use stable version but not bleeding-edge one.

The book assumes the use of the legacy XDRIVER for graphics rather
than the GUI. However, XDRIVER isn't available in the native Windows
version (and it has been removed altogether in 7.0). It is available
in the Cygwin version (but I don't think that there are Cygwin
binaries for the 6.4.0 release candidates).

Most of the the commands used in the book should work, but the way
that you use d.* commands is different when using the GUI.

--
Glynn Clements <[hidden email]>
_______________________________________________
grass-windows mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-windows