[GRASS-dev] Re: grass-dev Digest, Vol 25, Issue 41

Does this drawing only work on an xmon?

Michael

On 5/16/08 9:00 AM, "grass-dev-request@lists.osgeo.org"
<grass-dev-request@lists.osgeo.org> wrote:

Send grass-dev mailing list submissions to
grass-dev@lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
grass-dev Info Page
or, via email, send a message with subject or body 'help' to
grass-dev-request@lists.osgeo.org

You can reach the person managing the list at
grass-dev-owner@lists.osgeo.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of grass-dev digest..."

Today's Topics:

   1. d.region (Jachym Cepicky)
   2. Re: d.region (Moritz Lennert)
   3. [GRASS GIS] #170: r.colors: make nice random colors like
      r.watershed (GRASS GIS)
   4. Re: [GRASS GIS] #170: r.colors: make nice random colors like
      r.watershed (GRASS GIS)
   5. [GRASS GIS] #171: d.vect: -c type=area doesn't draw boundary
      (GRASS GIS)
   6. Re: [GRASS GIS] #171: d.vect: -c type=area doesn't draw
      boundary (GRASS GIS)

----------------------------------------------------------------------

Message: 1
Date: Fri, 16 May 2008 12:05:13 +0200
From: "Jachym Cepicky" <jachym.cepicky@gmail.com>
Subject: [GRASS-dev] d.region
To: grass-dev@lists.osgeo.org
Message-ID:
<a9fa15490805160305v2399627ev9db13f16206bd78f@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

hi,

I created new script, absed on d.region.box from Hamish. It has few
more options.

I think, script like this should go to GRASS (and not to live only as addon)

I called it d.region, here is it's help:

Description:
Draw desired region into current display

Keywords:
display, region

Usage:
d.region [-dcf] [name=string] [color=string] [width=value]
   [rast=string] [rast3d=string] [vect=string] [3dview=string] [n=value]
   [s=value] [e=value] [w=value] [--verbose] [--quiet]

Flags:
  -d Draw default region
  -c Draw current region
  -f Non-persistant box (doesn't survive redraw or zoom)
--v Verbose module output
--q Quiet module output

Parameters:
    name Region name
   color Color to draw with, either a standard GRASS color or R:G:B triplet
           default: black
   width Line width
           default: 1
    rast Draw region to match this raster map
  rast3d Draw region to match this 3D raster map
    vect Draw region to match this vector map
  3dview Draw region to match this 3dview file
       n Value for the northern edge
       s Value for the southern edge
       e Value for the eastern edge
       w Value for the western edge

The script is attached to this e-mail.

What do you think: Is it worth to put in trunk/grass/display/ ? should
the name be d.region or d.region.box or different ?

Jachym

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

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

Jachym:

> I created new script, absed on d.region.box from
> Hamish. It has few more options.
>
> I think, script like this should go to GRASS (and not
> to live only as addon)

until that is decided feel free to checkin your improvements in the addon svn. (me: I don't mind either way if it is in main grass or not; let the users decide! :slight_smile:

Michael:

Does this drawing only work on an xmon?

it will work with any display driver. (it is a wrapper for drawing a polygon with d.graph)

Hamish

added

j

2008/5/17 Hamish <hamish_b@yahoo.com>:

Jachym:

> I created new script, absed on d.region.box from
> Hamish. It has few more options.
>
> I think, script like this should go to GRASS (and not
> to live only as addon)

until that is decided feel free to checkin your improvements in the addon svn. (me: I don't mind either way if it is in main grass or not; let the users decide! :slight_smile:

Michael:

Does this drawing only work on an xmon?

it will work with any display driver. (it is a wrapper for drawing a polygon with d.graph)

Hamish

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

--
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub