Class SrsUnit

  • All Implemented Interfaces:
    Unit

    public class SrsUnit
    extends SimpleUnit
    Unit class for all spatial reference system related units
    Author:
    markr
    • Constructor Detail

      • SrsUnit

        protected SrsUnit()
        Constructor
    • Method Detail

      • convertTo

        public double convertTo​(Unit to,
                                double value)
        Convert one unit to the other for a given value
        Parameters:
        to - to unit
        value - value to convert
        Returns:
        converted value
      • canConvertTo

        public boolean canConvertTo​(Unit other)
        Verify if unit can be converted to the desired unit
        Specified by:
        canConvertTo in interface Unit
        Overrides:
        canConvertTo in class SimpleUnit
        Parameters:
        other - to unit
        Returns:
        true when compatible, false otherwise