Skip to content

r.to.vect.tiled

Converts a raster map into vector tiles.

r.to.vect.tiled [-svzbtp] input=name output=string type=string [column=name] [x=integer] [y=integer] [--overwrite] [--verbose] [--quiet] [--qq] [--ui]

Example:

r.to.vect.tiled input=name output=string type=string

grass.script.run_command("r.to.vect.tiled", input, output, type, column="value", x=2, y=2, flags=None, overwrite=False, verbose=False, quiet=False, superquiet=False)

Example:

gs.run_command("r.to.vect.tiled", input="name", output="string", type="string")

Parameters

input=name [required]
    Name of input raster map
output=string [required]
    Output base name
type=string [required]
    Feature type
    Allowed values: point, line, area
column=name
    Name of attribute column to store value
    Name must be SQL compliant
    Default: value
x=integer
    Number of tiles in x direction
    Default: 2
y=integer
    Number of tiles in y direction
    Default: 2
-s
    Smooth corners of linear features
-v
    Use raster values as categories instead of unique sequence (CELL only)
-z
    Write raster values as z coordinate
    Table is not created. Currently supported only for points.
-b
    Do not build vector topology
    Recommended for massive point conversion
-t
    Do not create attribute table
-p
    Patch the tiles
--overwrite
    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

input : str, required
    Name of input raster map
    Used as: input, raster, name
output : str, required
    Output base name
type : str, required
    Feature type
    Allowed values: point, line, area
column : str, optional
    Name of attribute column to store value
    Name must be SQL compliant
    Used as: name
    Default: value
x : int, optional
    Number of tiles in x direction
    Default: 2
y : int, optional
    Number of tiles in y direction
    Default: 2
flags : str, optional
    Allowed values: s, v, z, b, t, p
    s
        Smooth corners of linear features
    v
        Use raster values as categories instead of unique sequence (CELL only)
    z
        Write raster values as z coordinate
        Table is not created. Currently supported only for points.
    b
        Do not build vector topology
        Recommended for massive point conversion
    t
        Do not create attribute table
    p
        Patch the tiles
overwrite: bool, optional
    Allow output files to overwrite existing files
    Default: False
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

r.to.vect.tiled vectorizes the input raster map and produces several tiled vector maps covering the current region.

Vectorizing a large raster map with r.to.vect can require a lot of memory. In these cases, r.to.vect.tiled can reduce memory usage by vectorizing each tile separately.

The tiles are optionally patched together with the -p flag.

SEE ALSO

r.to.vect, g.region, v.patch, r.thin, v.clean

AUTHOR

Markus Metz

SOURCE CODE

Available at: r.to.vect.tiled source code (history)
Latest change: Thursday Feb 20 13:02:26 2025 in commit 53de819