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. |
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.mapdisp_command.Command.map, gui_modules.dbm_dialogs.DisplayAttributesDialog.map, gui_modules.dbm.AttributeManager.map, gui_modules.gselect.VectorDBInfo.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.workspace.ProcessWorkspaceFile.layers, gui_modules.nviz_mapdisp.GLWindow.layers, gui_modules.render.Map.layers, gui_modules.toolbars.VDigitToolbar.layers, gui_modules.gselect.VectorDBInfo.layers, gui_modules.gdialogs.AddMapLayersDialog.layers, gui_modules.workspace.ProcessGrcFile.layers, gui_modules.psmap_dialogs.VProperties.layers, gui_modules.dbm.LayerListCtrl.layers, gui_modules.psmap_dialogs.VPropertiesDialog.layers, gui_modules.gselect.VectorDBInfo.tables, gui_modules::psmap_dialogs.type, and gui_modules::dbm_base.unicodeValue().