GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
units.BaseUnits Class Reference

Public Member Functions

def __init__
 
def GetUnitsList
 Get list of units (their labels) More...
 
def GetUnitsKey
 Get units key based on index. More...
 
def GetUnitsIndex
 Get units index based on key. More...
 

Detailed Description

Definition at line 25 of file units.py.

Constructor & Destructor Documentation

def units.BaseUnits.__init__ (   self)

Definition at line 26 of file units.py.

References units.BaseUnits._units.

Member Function Documentation

def units.BaseUnits.GetUnitsIndex (   self,
  type,
  key 
)

Get units index based on key.

Parameters
typeunits type ('length' or 'area')
keyunits key, e.g. 'me' for meters
Returns
index

Definition at line 66 of file units.py.

References units.BaseUnits._units.

def units.BaseUnits.GetUnitsKey (   self,
  type,
  index 
)

Get units key based on index.

Parameters
typeunits type ('length' or 'area')
indexunits index

Definition at line 58 of file units.py.

References units.BaseUnits._units.

def units.BaseUnits.GetUnitsList (   self,
  type 
)

Get list of units (their labels)

Parameters
typeunits type ('length' or 'area')
Returns
list of units labels

Definition at line 40 of file units.py.

References units.BaseUnits._units.


The documentation for this class was generated from the following file: