GRASS logo

NAME - Creates a vector polygon from the current region extent.


vector, geometry

SYNOPSIS --help [-d] output=name [type=string] [cat=integer] [--overwrite] [--help] [--verbose] [--quiet] [--ui]


Densify lines using region resolution
Allow output files to overwrite existing files
Print usage summary
Verbose module output
Quiet module output
Force launching GUI dialog


output=name [required]
Name for output vector map
Select type: line or area
Options: line, area
Default: area
Category value
Default: 1

Table of contents

DESCRIPTION creates a new vector map from current region extent.

If the output of is to be used for raster reprojection, the -d flag should be used after setting the region to the raster map to be reprojected with r.proj.


The example is based on the North Carolina sample data location. To create a bounding box vector map based on a raster map, the computational region is first set to the raster map. Then a vector bounding box is created based on the actual computational region (in this case precisely reflecting the pixel geometry of the raster map), resulting in a new vector polygon:
g.region raster=soils_Kfactor -p output=soils_Kfactor_bbox map=soils_Kfactor_bbox


g.region, r.proj,


Radim Blazek


Available at: source code (history)

Latest change: Thursday Feb 03 11:10:06 2022 in commit: 547ff44e6aecfb4c9cbf6a4717fc14e521bec0be

Main index | Vector index | Topics index | Keywords index | Graphical index | Full index

© 2003-2023 GRASS Development Team, GRASS GIS 8.2.2dev Reference Manual