Skip to content

g.proj.all

Reprojects raster and vector maps from given location and mapset to current mapset.

g.proj.all [-rzo] location=name mapset=name [dbase=path] [method=string] [resolution=float] [--verbose] [--quiet] [--qq] [--ui]

Example:

g.proj.all location=name mapset=name

grass.script.run_command("g.proj.all", location, mapset, dbase=None, method="nearest", resolution=None, flags=None, verbose=False, quiet=False, superquiet=False)

Example:

gs.run_command("g.proj.all", location="name", mapset="name")

Parameters

location=name [required]
    Location containing input raster map
mapset=name [required]
    Name of mapset (default: current search path)
    Mapset containing input raster map
dbase=path
    Path to GRASS database of input location
method=string
    Interpolation method to use
    Allowed values: nearest, linear, cubic, lanczos, linear_f, cubic_f, lanczos_f
    Default: nearest
    nearest: nearest neighbor
    linear: linear interpolation
    cubic: cubic convolution
    lanczos: lanczos filter
    linear_f: linear interpolation with fallback
    cubic_f: cubic convolution with fallback
    lanczos_f: lanczos filter with fallback
resolution=float
    Resolution of output raster map
-r
    Use current region instead of maps bounds
-z
    Assume z coordinate is ellipsoidal height and transform if possible
    3D vector maps only
-o
    Allow output files to overwrite existing files
--help
    Print usage summary
--verbose
    Verbose module output
--quiet
    Quiet module output
--qq
    Very quiet module output
--ui
    Force launching GUI dialog

location : str, required
    Location containing input raster map
    Used as: input, location, name
mapset : str, required
    Name of mapset (default: current search path)
    Mapset containing input raster map
    Used as: input, mapset, name
dbase : str, optional
    Path to GRASS database of input location
    Used as: input, dbase, path
method : str, optional
    Interpolation method to use
    Allowed values: nearest, linear, cubic, lanczos, linear_f, cubic_f, lanczos_f
    nearest: nearest neighbor
    linear: linear interpolation
    cubic: cubic convolution
    lanczos: lanczos filter
    linear_f: linear interpolation with fallback
    cubic_f: cubic convolution with fallback
    lanczos_f: lanczos filter with fallback
    Default: nearest
resolution : float, optional
    Resolution of output raster map
flags : str, optional
    Allowed values: r, z, o
    r
        Use current region instead of maps bounds
    z
        Assume z coordinate is ellipsoidal height and transform if possible
        3D vector maps only
    o
        Allow output files to overwrite existing files
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

g.proj.all reprojects all raster and vector maps from given location and mapset to the current mapset. If flag r is set, current computational region is used for raster maps reprojection. Otherwise, each raster map is reprojected to its bounds, ignoring computational region in the current mapset. Modules r.proj and v.proj are used for reprojecting.

EXAMPLE

This example reprojects raster maps (with resolution 50 map units) and vector maps from mapset 'landsat' of 'nc_spm_08' location to the current mapset.

g.proj.all resolution=50 location=nc_spm_08 mapset=landsat

SEE ALSO

r.proj, v.proj

AUTHORS

Anna Petrasova, NCSU GeoForAll Lab,
Vaclav Petras, NCSU GeoForAll Lab

SOURCE CODE

Available at: g.proj.all source code (history)
Latest change: Thursday Feb 20 13:02:26 2025 in commit 53de819