GRASS Programmer's Manual  6.4.4(2014)-r
core/utils.py File Reference

Go to the source code of this file.

Namespaces

 utils
 
 core.utils
 Misc utilities for wxGUI.
 

Functions

def utils.normalize_whitespace (text)
 Remove redundant whitespace from a string. More...
 
def utils.split (s)
 Platform spefic shlex.split. More...
 
def utils.GetTempfile
 Creates GRASS temporary file using defined prefix. More...
 
def utils.GetLayerNameFromCmd
 Get map name from GRASS command. More...
 
def utils.GetValidLayerName (name)
 Make layer name SQL compliant, based on G_str_to_sql() More...
 
def utils.ListOfCatsToRange (cats)
 Convert list of category number to range(s) More...
 
def utils.ListOfMapsets
 Get list of available/accessible mapsets. More...
 
def utils.ListSortLower (list)
 Sort list items (not case-sensitive) More...
 
def utils.GetVectorNumberOfLayers
 Get list of vector layers. More...
 
def utils.GetAllVectorLayers (vector)
 Returns list of all vector layers as strings. More...
 
def utils.Deg2DMS
 Convert deg value to dms string. More...
 
def utils.DMS2Deg (lon, lat)
 Convert dms value to deg. More...
 
def utils.GetCmdString (cmd)
 
def utils.CmdToTuple (cmd)
 Convert command list to tuple for gcmd.RunCommand() More...
 
def utils.PathJoin (args)
 Check path created by os.path.join. More...
 
def utils.ReadEpsgCodes (path)
 Read EPSG code from the file. More...
 
def utils.ReprojectCoordinates
 Reproject coordinates. More...
 
def utils.GetListOfLocations (dbase)
 Get list of GRASS locations in given dbase. More...
 
def utils.GetListOfMapsets
 Get list of mapsets in given GRASS location. More...
 
def utils.GetColorTables ()
 Get list of color tables. More...
 
def utils.DecodeString (string)
 Decode string using system encoding. More...
 
def utils.EncodeString (string)
 Return encoded string using system locales. More...
 
def utils.GetFormats ()
 Get GDAL/OGR formats. More...
 
def utils.GetSettingsPath ()
 Get full path to the settings directory. More...
 
def utils.StoreEnvVariable
 Store environmental variable. More...
 
def utils.SetAddOnPath
 Set default AddOn path. More...
 

Variables

 utils.formats = None