[GRASS-git] [OSGeo/grass-addons] 7c25cc: d.region.grid: Add new tool to display grids (#635)

Vaclav Petras noreply at github.com
Wed Nov 24 13:10:53 PST 2021


  Branch: refs/heads/grass7
  Home:   https://github.com/OSGeo/grass-addons
  Commit: 7c25cc864df24e1b3d03aedf4d11e61c35b33594
      https://github.com/OSGeo/grass-addons/commit/7c25cc864df24e1b3d03aedf4d11e61c35b33594
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2021-11-24 (Wed, 24 Nov 2021)

  Changed paths:
    A src/display/d.region.grid/Makefile
    A src/display/d.region.grid/d.region.grid.html
    A src/display/d.region.grid/d.region.grid.py
    A src/display/d.region.grid/d_region_grid_new_region_grid.png
    A src/display/d.region.grid/d_region_grid_two_rasters.png

  Log Message:
  -----------
  d.region.grid: Add new tool to display grids (#635)

d.region.grid is a wrapper around two d.grid calls. Unlike d.grid, d.region.grid can display grid lines
for the a computation region without the user first getting the resolution manually.
It also respects that the resolution might be different in each direction.
Finally, it also supports displaying grid based on a resolution of a raster map.

It has limitations inherited from d.grid, so it can't limit the grid extent (d.grid draws full rendering extent/region)
and it can't draw marks instead of lines (d.grid has one resolution and uses that to draw a point grid).

Two possible lines of uses cases are drawing region grid where the EW and NS resolutions differ
(requires two d.grid calls) and drawing grid of raster or region (no additional calls needed to get the
resolution, unless you are in GUI, but there you can at least avoid handling the numbers directly).

Grammar and typo fixes in manual by Veronica Andreo.

Co-authored-by: Veronica Andreo <veroandreo at gmail.com>




More information about the grass-commit mailing list