Skip to content

v.pack

Exports a vector map as GRASS GIS specific archive file

v.pack [-c] input=name [output=name] [--overwrite] [--verbose] [--quiet] [--qq] [--ui]

Example:

v.pack input=name

grass.script.run_command("v.pack", input, output=None, flags=None, overwrite=False, verbose=False, quiet=False, superquiet=False)

Example:

gs.run_command("v.pack", input="name")

Parameters

input=name [required]
    Name of vector map to pack up
output=name
    Name for output file (default is <input>.pack)
-c
    Switch the compression off
--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 vector map to pack up
    Used as: input, vector, name
output : str, optional
    Name for output file (default is <input>.pack)
    Used as: output, file, name
flags : str, optional
    Allowed values: c
    c
        Switch the compression off
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

v.pack collects (packs) vector map elements and support files in GRASS Database and creates an compressed file using gzip algorithm. This file can be used to copy the vector map to another machine. The packed file can be afterwards unpacked by v.unpack.

NOTES

Name of the pack file is determined by default from input parameter. Optionally the name can be given by output parameter.

EXAMPLE

Pack up vector map random_point into random_point.pack file.

v.pack input=random_point

the vector map can be afterwards unpacked by

v.unpack input=random_point.pack

SEE ALSO

v.unpack, v.in.ogr, g.copy, v.proj, r.unpack

AUTHOR

Luca Delucchi, Fondazione E. Mach (Italy), based on the r.pack code

SOURCE CODE

Available at: v.pack source code (history)
Latest change: Friday Feb 07 19:16:09 2025 in commit a82a39f