|
GRASS Programmer's Manual
6.4.2(2012)
|
Class providing information about attribute tables linked to the vector map. More...


Public Member Functions | |
| def | __init__ |
| def | GetColumns |
| Return list of columns names (based on their index) | |
| def | SelectByPoint |
| Get attributes by coordinates (all available layers) | |
| def | SelectFromTable |
| Select records from the table. | |
Public Member Functions inherited from gui_modules.gselect.VectorDBInfo | |
| def | Reset |
| Reset. | |
| def | GetName |
| Get vector name. | |
| def | GetKeyColumn |
| Get key column of given layer. | |
| def | GetTable |
| Get table name of given layer. | |
| def | GetDbSettings |
| Get database settins. | |
| def | GetTableDesc |
| Get table columns. | |
Additional Inherited Members | |
Data Fields inherited from gui_modules.gselect.VectorDBInfo | |
| map | |
| layers | |
| tables | |
Class providing information about attribute tables linked to the vector map.
Definition at line 71 of file dbm_base.py.
| def gui_modules.dbm_base.VectorDBInfo.__init__ | ( | self, | |
| map | |||
| ) |
Reimplemented from gui_modules.gselect.VectorDBInfo.
Definition at line 74 of file dbm_base.py.
| def gui_modules.dbm_base.VectorDBInfo.GetColumns | ( | self, | |
| table | |||
| ) |
Return list of columns names (based on their index)
Definition at line 77 of file dbm_base.py.
References gui_modules.gselect.VectorDBInfo.tables.
| def gui_modules.dbm_base.VectorDBInfo.SelectByPoint | ( | self, | |
| queryCoords, | |||
| qdist | |||
| ) |
Get attributes by coordinates (all available layers)
Return line id or None if no line is found
Definition at line 89 of file dbm_base.py.
References gui_modules.dbm_dialogs.DisplayAttributesDialog.map, gui_modules.gselect.VectorDBInfo.map, gui_modules.dbm.AttributeManager.map, gui_modules.gselect.VectorDBInfo.tables, and gui_modules.dbm_base.unicodeValue().
| def gui_modules.dbm_base.VectorDBInfo.SelectFromTable | ( | self, | |
| layer, | |||
cols = '*', |
|||
where = None |
|||
| ) |
Select records from the table.
Return number of selected records, -1 on error
Definition at line 124 of file dbm_base.py.
References gui_modules.gselect.VectorDBInfo.layers, gui_modules.gdialogs.AddMapLayersDialog.layers, gui_modules.dbm.LayerListCtrl.layers, gui_modules.gselect.VectorDBInfo.tables, gui_modules.psmap_dialogs.type, and gui_modules.dbm_base.unicodeValue().