|
GRASS Programmer's Manual
6.4.2(2012)
|
Functions | |
| def | vector_db |
| Return the database connection details for a vector map (interface to `v.db.connect -g'). | |
| def | vector_layer_db |
| Return the database connection details for a vector map layer. | |
| def | vector_columns |
| Return a dictionary (or a list) of the columns for the database table connected to a vector map (interface to `v.info -c'). | |
| def | vector_history |
| Set the command history for a vector map to the command used to invoke the script (interface to `v.support'). | |
| def | vector_info_topo |
| Return information about a vector map (interface to `v.info -t'). | |
| def | vector_db_select |
| Get attribute data of selected vector map layer. | |
| def | vector_what |
| Query vector map at given locations. | |
| def python.vector.vector_columns | ( | map, | |
layer = None, |
|||
getDict = True, |
|||
| args | |||
| ) |
Return a dictionary (or a list) of the columns for the database table connected to a vector map (interface to `v.info -c').
| map | map name |
| layer | layer number or name (None for all layers) |
| getDict | True to return dictionary of columns otherwise list of column names is returned |
| args | (v.info's arguments) |
Definition at line 97 of file vector.py.
References python.core.read_command().
| def python.vector.vector_db | ( | map, | |
| args | |||
| ) |
Return the database connection details for a vector map (interface to `v.db.connect -g').
Example:
| map | vector map |
| args |
Definition at line 37 of file vector.py.
References python.core.read_command(), and gui_modules.utils.split().
Referenced by python.vector.vector_db_select(), and python.vector.vector_layer_db().
| def python.vector.vector_db_select | ( | map, | |
layer = 1, |
|||
| kwargs | |||
| ) |
Get attribute data of selected vector map layer.
Function returns list of columns and dictionary of values ordered by key column value. Example:
| map | map name |
| layer | layer number |
| kwargs | v.db.select options |
Definition at line 172 of file vector.py.
References python.core.read_command(), gui_modules.utils.split(), and python.vector.vector_db().
| def python.vector.vector_history | ( | map | ) |
Set the command history for a vector map to the command used to invoke the script (interface to `v.support').
| map | mapname |
Definition at line 136 of file vector.py.
References python.core.run_command().
| def python.vector.vector_info_topo | ( | map | ) |
Return information about a vector map (interface to `v.info -t').
Example:
| map | map name |
Definition at line 148 of file vector.py.
References python.core.parse_key_val(), and python.core.read_command().
| def python.vector.vector_layer_db | ( | map, | |
| layer | |||
| ) |
Return the database connection details for a vector map layer.
If db connection for given layer is not defined, fatal() is called.
| map | map name |
| layer | layer number |
Definition at line 79 of file vector.py.
References python.core.fatal(), and python.vector.vector_db().
| def python.vector.vector_what | ( | map, | |
| coord, | |||
distance = 0.0 |
|||
| ) |
Query vector map at given locations.
To query one vector map at one location
To query one vector map at more locations
To query more vector maps at one location
| map | vector map(s) to query given as string or list/tuple |
| coord | coordinates of query given as tuple (easting, northing) or list of tuples |
| distance | query threshold distance (in map units) |
Definition at line 227 of file vector.py.
References python.core.read_command(), and gui_modules.psmap_dialogs.type.