Run GRASS command.
- Parameters
-
prog | program to run |
flags | flags given as a string |
overwrite,quiet,verbose | flags |
parent | parent window for error messages |
read | fetch stdout |
stdin | stdin or None |
getErrorMsg | get error messages on failure |
kwargs | program parameters |
- Returns
- returncode (read == False and getErrorMsg == False)
-
returncode, messages (read == False and getErrorMsg == True)
-
stdout (read == True and getErrorMsg == False)
-
returncode, stdout, messages (read == True and getErrorMsg == True)
-
stdout, stderr
Definition at line 625 of file gcmd.py.
References GetRealCmd().
Referenced by preferences.PreferencesDialog.__init__(), gcmd.CommandThread.abort(), colorrules.VectorColorTable.AddTemporaryColumn(), manager.AttributeManager.ApplyCommands(), utils.ComputeSetRegion(), colorrules.VectorColorTable.CreateAttrTable(), colorrules.ColorTable.CreateColorTable(), profile.ProfileFrame.CreateDatalist(), dialogs.GroupDialog.CreateNewGroup(), dialogs.CreateNewVector(), colorrules.VectorColorTable.DeleteTemporaryColumn(), frame.DialogDataChanged(), mapwindow.BufferedWindow.DisplayToWind(), dialogs.GroupDialog.EditGroup(), utils.GetAllVectorLayers(), utils.GetColorTables(), preferences.DefaultFontDialog.GetFonts(), dialogs.GroupDialog.GetGroupLayers(), utils.GetListOfMapsets(), manager.GCP.GetNewExtent(), render.Map.GetRegion(), utils.GetTempfile(), utils.GetVectorNumberOfLayers(), gis_set.GRASSStartup.ImportFile(), gselect.ColumnSelect.InsertTableColumns(), gselect.TableSelect.InsertTables(), utils.ListOfMapsets(), manager.VirtualAttributeList.LoadData(), extensions.CheckListExtension.LoadData(), colorrules.VectorColorTable.LoadRulesFromColumn(), colorrules.ColorTable.LoadTable(), colorrules.VectorColorTable.OnAddColumn(), manager.LayerBook.OnAddLayer(), frame.GMFrame.OnChangeLocation(), frame.GMFrame.OnChangeMapset(), vclean.VectorCleaningFrame.OnCleaningRun(), frame.PsMapFrame.OnCmdDone(), manager.VirtualAttributeList.OnColumnCompute(), ogc_services.WMSDialog.OnConnect(), dialogs.NorthArrowDialog.OnConvergence(), frame.GMFrame.OnCreateMapset(), manager.LayerBook.OnCreateTable(), manager.AttributeManager.OnDataItemDeleteAll(), manager.LayerBook.OnDeleteLayer(), manager.AttributeManager.OnDeleteSelected(), manager.DispMapPage.OnEnterPage(), wizard.SummaryPage.OnEnterPage(), dialogs.VDigitCategoryDialog.OnFeature(), manager.GCP.OnGeorect(), toolbars.LMNvizToolbar.OnHelp(), frame.ModelFrame.OnHelp(), vclean.VectorCleaningFrame.OnHelp(), mcalc_builder.MapCalcFrame.OnHelp(), frame.OnHelp(), mapwindow.VDigitWindow.OnLeftDownAddLine(), mapwindow.VDigitWindow.OnLeftUpConnectLine(), frame.GMFrame.OnLocationWizard(), frame.GMFrame.OnMapsets(), mcalc_builder.MapCalcFrame.OnMCalcRun(), manager.LayerBook.OnModifyLayer(), wizard.DatumPage.OnPageChanging(), wizard.EPSGPage.OnPageChanging(), colorrules.RasterColorTable.OnPreview(), preferences.PreferencesBaseDialog.OnSave(), dialogs.RegionDef.OnSetButton(), gselect.GdalSelect.OnSetDsn(), dialogs.DxfImportDialog.OnSetDsn(), colorrules.ColorTable.OnSetTable(), manager.DispMapPage.OnSrcSelection(), dialogs.DisplayAttributesDialog.OnSubmit(), tools.OnSurfaceModeAll(), frame.GMFrame.OnSystemInfo(), colorrules.VectorColorTable.OnTablePreview(), extensions.UninstallExtensionWindow.OnUninstall(), sqlbuilder.SQLFrame.OnVerify(), wizard.LocationWizard.OnWizFinished(), frame.GMFrame.OnXTerm(), utils.projInfo(), render.Layer.Render(), render.Map.Render(), utils.ReprojectCoordinates(), statusbar.SbGoTo.ReprojectENToMap(), manager.GCP.RMSError(), model.Model.Run(), colorrules.ColorTable.RunHelp(), mapwindow.BufferedWindow.SaveRegion(), vinfo.VectorDBInfo.SelectFromTable(), gis_set.GRASSStartup.SetLocation(), instructions.Instruction.SetRegion(), utils.SetResolution(), manager.GCP.SetTarget(), profile.ProfileFrame.SetupProfile(), colorrules.VectorColorTable.UpdateColorColumn(), gselect.MapsetSelect.UpdateItems(), gselect.ProjSelect.UpdateItems(), and main.MapApp.watcher().