Skip to content

d.info

Displays information about the active display monitor.

Display monitors are maintained by d.mon.

d.info [-rdfebg] [--verbose] [--quiet] [--qq] [--ui]

Example:

d.info

grass.script.parse_command("d.info", flags=None, verbose=False, quiet=False, superquiet=False)

Example:

gs.parse_command("d.info")

Parameters

-r
    Display screen rectangle (left, right, top, bottom)
-d
    Display screen dimensions (width, height)
-f
    Display active frame rectangle
-e
    Display frame dimensions (width, height)
-b
    Display screen rectangle of current region
-g
    Display geographic coordinates and resolution of entire frame
--help
    Print usage summary
--verbose
    Verbose module output
--quiet
    Quiet module output
--qq
    Very quiet module output
--ui
    Force launching GUI dialog

flags : str, optional
    Allowed values: r, d, f, e, b, g
    r
        Display screen rectangle (left, right, top, bottom)
    d
        Display screen dimensions (width, height)
    f
        Display active frame rectangle
    e
        Display frame dimensions (width, height)
    b
        Display screen rectangle of current region
    g
        Display geographic coordinates and resolution of entire frame
verbose: bool, optional
    Verbose module output
    Default: False
quiet: bool, optional
    Quiet module output
    Default: False
superquiet: bool, optional
    Very quiet module output
    Default: False

DESCRIPTION

d.info displays information about the active display monitor. Display monitors are maintained by d.mon.

EXAMPLES

d.mon start=cairo

d.info -r
rectangle: 0.000000 640.000000 0.000000 480.000000

NOTES

Units are screen pixels (except for -g flag where map units are used).
Where two numbers are given the format is: width, height.
Where four numbers are given the format is: left, right, top, bottom.

Note: GRASS display pixel coordinates are measured from the top left.

SEE ALSO

d.mon, d.vect, d.rast

AUTHOR

Glynn Clements

SOURCE CODE

Available at: d.info source code (history)
Latest change: Friday Feb 07 19:16:09 2025 in commit a82a39f