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

Data Structures

class  BaseUnits
 

Functions

def ConvertValue
 Convert value from map units to given units. More...
 

Variables

tuple Units = BaseUnits()
 

Function Documentation

def units.ConvertValue (   value,
  type,
  units 
)

Convert value from map units to given units.

Inspired by vector/v.to.db/units.c

Parameters
valuevalue to be converted
typeunits type ('length', 'area')
unitdestination units

Definition at line 81 of file units.py.

Variable Documentation

tuple units.Units = BaseUnits()

Definition at line 79 of file units.py.