[GRASS-dev] d.rast.edit in wxgrass

Michael Barton michael.barton at asu.edu
Fri Jun 15 14:15:05 EDT 2007




On 6/15/07 9:21 AM, "Glynn Clements" <glynn at gclements.plus.com> wrote:

>> 2) type a command with arguments and it runs the command. To run a d.*
>> command and have it do anything useful in the wxgrass environment, it needs
>> to be added to the list of display layers and the display updated.
> 
> Not all d.* commands generate graphics. Admittedly, most of the ones
> which don't are only useful with a standalone monitor. I don't know
> whether there are any other exceptions apart from d.rast.edit
> (technically, the original v.digit should have had a d.* prefix, e.g.
> d.vect.edit, but it doesn't).
> 
> For the d.* hack to work, we will need to adopt (and enforce) a rule
> that the d.* prefix is reserved solely for commands which generate
> graphics. That will become more practical in 7.x, as the display
> "management" commands (d.mon, d.save, d.info etc) will no longer be
> relevant once standalone monitors cease to exist.
> 

Good point. The current hack is to have a list of acceptable d.* commands
that will actually work in the display. This needs to be extended to d.*
commands with arguments. If something is not on the list, it generates a
message dialog telling the user that this command is not implemented.

Michael


__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton





More information about the grass-dev mailing list