uk.me.parabola.mkgmap.osmstyle.eval
Class UnitConversions

java.lang.Object
  extended by uk.me.parabola.mkgmap.osmstyle.eval.UnitConversions

public class UnitConversions
extends java.lang.Object

Converting quantities from one unit to another. TODO: this will probably change a lot.

Author:
Steve Ratcliffe

Constructor Summary
UnitConversions()
           
 
Method Summary
static double convertFactor(java.lang.String code)
          Get the conversion factor for the given conversion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnitConversions

public UnitConversions()
Method Detail

convertFactor

public static double convertFactor(java.lang.String code)
Get the conversion factor for the given conversion.

Parameters:
code - A string such as 'm=>ft' which would mean meters to feet.
Returns:
The factor required to convert the first to the second.