GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
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) More... | |
def | SelectByPoint |
Get attributes by coordinates (all available layers) More... | |
def | SelectFromTable |
Select records from the table. More... | |
Class providing information about attribute tables linked to the vector map.
def vinfo.VectorDBInfo.GetColumns | ( | self, | |
table | |||
) |
Return list of columns names (based on their index)
Definition at line 71 of file vinfo.py.
References gselect.VectorDBInfo.tables.
def vinfo.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 83 of file vinfo.py.
References dialogs.DisplayAttributesDialog.map, dialogs.OptDialog.map, gselect.VectorDBInfo.map, manager.AttributeManager.map, gselect.VectorDBInfo.tables, and vinfo.unicodeValue().
def vinfo.VectorDBInfo.SelectFromTable | ( | self, | |
layer, | |||
cols = '*' , |
|||
where = None |
|||
) |
Select records from the table.
Return number of selected records, -1 on error
Definition at line 127 of file vinfo.py.
References toolbars.VDigitToolbar.layers, workspace.ProcessWorkspaceFile.layers, mapwindow.GLWindow.layers, render.Map.layers, gselect.VectorDBInfo.layers, workspace.ProcessGrcFile.layers, dialogs.MapLayersDialog.layers, dialogs.VPropertiesDialog.layers, instructions.VProperties.layers, manager.LayerListCtrl.layers, gcmd.RunCommand(), gselect.VectorDBInfo.tables, dialogs.type, and vinfo.unicodeValue().