Interface UnitConverter
-
public interface UnitConverter
An interface for converting from underlying units (i.e. those which the WMS server accepts) to display units (i.e. those we wish the data to appear in on the client)- Author:
- Guy Griffiths
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description float
convertFromDisplayUnit(float displayValue)
float
convertToDisplayUnit(float actualValue)
-
-
-
Method Detail
-
convertToDisplayUnit
float convertToDisplayUnit(float actualValue)
- Parameters:
actualValue
- The value which the WMS server will interpret correctly- Returns:
- The displayable unit
-
convertFromDisplayUnit
float convertFromDisplayUnit(float displayValue)
- Parameters:
displayValue
- The value in the units we are displaying on the client- Returns:
- The value in the units which the WMS expects
-
-