Skip to content

v.external.all

Links all OGR layers available in given OGR datasource.

v.external.all [-l] input=string [--overwrite] [--verbose] [--quiet] [--qq] [--ui]

Example:

v.external.all input=string

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

Example:

gs.run_command("v.external.all", input="string")

Parameters

input=string [required]
    Name of input OGR or PostGIS data source
-l
    List available layers in data source and exit
--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 OGR or PostGIS data source
flags : str, optional
    Allowed values: l
    l
        List available layers in data source and exit
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.external.all creates (using v.external) in the current mapset new pseudo-vector maps for all OGR layers from given OGR datasource (input option).

EXAMPLES

PostGIS

List available feature tables in given PostGIS database

v.external.all -l input=PG:dbname=pgis_nc

PostGIS database contains 55 feature table(s):
boundary_county
boundary_municp
bridges
busroute1
busroute11
busroute6
busroute_a
busroutesall
busstopsall
censusblk_swwake
census_wake2000
...

Create links (ie. pseudo-vector maps) in the current mapset for all PostGIS feature tables

v.external.all input=PG:dbname=pgis_nc

Esri Shapefile

v.external.all -l input=~/geodata/ncshape/
Data source (format 'ESRI Shapefile')
contains 44 layers:
poi_names_wake
schools_wake
urbanarea
geodetic_swwake_pts
usgsgages
busroute_a
busroute6
hospitals
...
v.external.all -l input=~/geodata/ncshape/

AUTHOR

Martin Landa, Czech Technical University in Prague

SOURCE CODE

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