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=None, verbose=None, quiet=None, superquiet=None)
Example:
gs.run_command("v.external.all", input="string")
grass.tools.Tools.v_external_all(input, flags=None, overwrite=None, verbose=None, quiet=None, superquiet=None)
Example:
tools = Tools()
tools.v_external_all(input="string")
This grass.tools API is experimental in version 8.5 and expected to be stable in version 8.6.
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: None
verbose : bool, optional
Verbose module output
Default: None
quiet : bool, optional
Quiet module output
Default: None
superquiet : bool, optional
Very quiet module output
Default: None
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: None
verbose : bool, optional
Verbose module output
Default: None
quiet : bool, optional
Quiet module output
Default: None
superquiet : bool, optional
Very quiet module output
Default: None
Returns:
result : grass.tools.support.ToolResult | None
If the tool produces text as standard output, a ToolResult object will be returned. Otherwise, None
will be returned.
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