GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
d.grid(1) GRASS GIS User's Manual d.grid(1)

d.grid - Overlays a user-specified grid in the active display frame on the graphics monitor.

display, cartography, graticule, grid

d.grid
d.grid --help
d.grid [-agwcdfnbt] size=value [origin=east,north] [direction=string] [width=float] [color=name] [border_color=name] [text_color=name] [bgcolor=name] [fontsize=integer] [--help] [--verbose] [--quiet] [--ui]


Align the origin to the east-north corner of the current region

Draw geographic grid (referenced to current ellipsoid)

Draw geographic grid (referenced to WGS84 ellipsoid)

Draw ’+’ marks instead of grid lines

Draw ’.’ marks instead of grid lines

Draw fiducial marks instead of grid lines

Disable grid drawing

Disable border drawing

Disable text drawing

Print usage summary

Verbose module output

Quiet module output

Force launching GUI dialog


Size of grid to be drawn (in map units)
0 for north-south resolution of the current region. In map units or DDD:MM:SS format. Example: "1000" or "0:10"

Lines of the grid pass through this coordinate
Default: 0,0

Draw only east-west lines, north-south lines, or both
Options: both, east-west, north-south
Default: both

Grid line width

Grid color
Either a standard color name or R:G:B triplet
Default: gray

Border color
Either a standard color name or R:G:B triplet
Default: black

Text color
Either a standard color name or R:G:B triplet
Default: gray

Background color
Either a standard color name, R:G:B triplet, or "none"
Default: none

Font size for gridline coordinate labels
Options: 1-72
Default: 9

d.grid overlays a grid of user-defined size and color in the active display frame on the graphics monitor. The grid can be created as a standard rectangular grid or a geographic grid.

If the user provides a -g flag a geographic (projected) grid will be drawn. With the -g flag the size argument accepts both decimal degrees and colon separated ddd:mm:ss coordinates (eg. 00:30:00 for half of a degree). A geographic grid cannot be drawn for a latitude/longitude or XY projection.

Colors may be standard named GRASS colors (red, green, aqua, etc.) or a numerical R:G:B triplet, where component values range from 0-255. Grid color can be set with option color. Options text_color and bgcolor set the color of the text and its background.

The grid drawing may be turned off by using the -n flag.
The border drawing may be turned off by using the -b flag.
The coordinate text may be turned off by using the -t flag.

To draw grid lines at different intervals, e.g. at high latitudes, you can run the module twice, once with direction=east-west at one interval size, and again with direction=north-south at another interval size.

To draw a red geographic grid with 30 minute grid spacing, run one of the following commands:

d.grid -g size=00:30:00 color=red

or

d.grid -g size=0.5 color=255:0:0

Figure: Showing a geographic grid in red line color To draw a blue standard rectangular grid at a 500 (meter) spacing run the following:

d.grid size=500 color=blue

Figure: Showing a rectangular grid in blue line color

d.barscale, d.legend, d.geodesic, d.rhumbline, d.erase, d.frame, d.rast, v.mkgrid

James Westervelt, U.S. Army Construction Engineering Research Laboratory
Geogrid support: Bob Covill
Border support: Markus Neteler
Text and RGB support: Hamish Bowman
Background color implemented as part of GSoC 2016 by Adam Laza, CTU in Prague

Available at: d.grid source code (history)

Latest change: Tuesday Dec 17 20:17:20 2024 in commit: d962e90c026708a4815ea2b9f46c0e84c17de22d

Main index | Display index | Topics index | Keywords index | Graphical index | Full index

© 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual

GRASS 8.4.1

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.