Skip to content

v.convert

Imports older versions of GRASS vector maps.

v.convert input=name [output=name] [endian=string] [--overwrite] [--verbose] [--quiet] [--qq] [--ui]

Example:

v.convert input=name

grass.script.run_command("v.convert", input, output=None, endian="big", overwrite=False, verbose=False, quiet=False, superquiet=False)

Example:

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

Parameters

input=name [required]
    Name of input vector map
    Or data source for direct OGR access
output=name
    Name for output vector map
endian=string
    Endian of input vector map
    Allowed values: big, little
    Default: big
--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 vector map
    Or data source for direct OGR access
    Used as: input, vector, name
output : str, optional
    Name for output vector map
    Used as: output, vector, name
endian : str, optional
    Endian of input vector map
    Allowed values: big, little
    Default: big
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.convert converts GRASS 5.0/5.3/5.4 vectors into 5.7/6.x vectors.

NOTES

Vector maps from 5.0/5.3/5.4 and 5.7/6.x do not interfere. They are stored in different directories, so you can use the same names. Old vector maps can be listed with g.list oldvect.

If you need to convert back from 5.7/6.x into the 5.0/5.3/5.4 vector format, use v.out.ogr (to SHAPE format) and then v.in.shape in the old GRASS program. Alternatively use "v.out.ascii -o" and v.in.ascii.

As this GRASS version uses SQL for attribute management, there are some SQL restrictings concerning the file names.

Missing centroids can be added with v.category.

EXAMPLE

v.convert in=vectormap_from_50 out=vectormap_60

SEE ALSO

g.list, v.category, v.convert.all, v.out.ascii, v.in.ascii, v.out.ogr

AUTHOR

Radim Blazek, ITC-Irst, Trento, Italy

SOURCE CODE

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