code: private double degreeToNumber( String value ) {
          double number = -1;
  
          String[] valueSplit = value.trim().split(":"); //$NON-NLS-1$
          if (valueSplit.length == 3) {
              // deg:min:sec.ss
              double deg = Double.parseDouble(valueSplit[0]);
              double min = Double.parseDouble(valueSplit[1]);
              double sec = Double.parseDouble(valueSplit[2]);
              number = deg + min / 60.0 + sec / 60.0 / 60.0;
          } else if (valueSplit.length == 2) {
              // deg:min
              double deg = Double.parseDouble(valueSplit[0]);
              double min = Double.parseDouble(valueSplit[1]);
              number = deg + min / 60.0;
          } else if (valueSplit.length == 1) {
              // deg
              number = Double.parseDouble(valueSplit[0]);
          }
          return number;
      }
docs: Transforms degree string into the decimal value.
  
  @param value the string in degrees.
  @return the translated value.