UPDATE 1-Bank of Canada raises rates, says data will decide future moves

(Adds detail, comment from announcement)

OTTAWA, July 12 (Reuters) - The Bank of Canada raised interest rates for the first time in nearly seven years on Wednesday, citing confidence in its outlook and a need to look through soft inflation, but said it will wait for more economic data before committing to its next rate hike.

The widely expected rate hike makes Canada the first major central bank to follow the Federal Reserve in removing some of the monetary stimulus poured into the global economy after the 2007-2009 financial crisis.

In a decision that emphasized the lag between a rate hike and future inflation, the central bank raised its official interest rate by a quarter of a percentage point to 0.75 percent but signaled it did not want to commit to a predetermined path of more hikes.

"Future adjustments to the target for the overnight rate will be guided by incoming data as they inform the bank's inflation outlook, keeping in mind continued uncertainty and financial system vulnerabilities," the bank said a statement.

Acknowledging the contradiction in raising rates amid low inflation, the bank said it will continue to analyze short-term price fluctuations "to determine the extent to which it remains appropriate to look through them," and noted temporary factors like electricity rebates have kept a lid on prices.

It said it expects inflation to rise to close to 2 percent by the middle of 2018 but said global structural factors could be contributing to low price pressures in Canada.

The bank raised its growth forecasts for 2017 and 2018 but trimmed its 2019 outlook, and projected the output gap would close around the end of 2017, earlier than it had anticipated in April.

It expects annual GDP growth of 2.8 percent in 2017 and 2.0 percent in 2018, up from the 2.6 percent and 1.9 percent it forecast three months ago.

While recent data have not been much stronger than policymakers' forecast in April, the bank said its confidence in its outlook has been bolstered by the country's economic performance despite geopolitical uncertainty and softer oil prices.

Still, with previous misplaced optimism in mind, policymakers signaled they did not want to get too far ahead of themselves by hinting at more interest rate hikes to come.

The bank said Canadian growth is expected to moderate but remain above its potential through 2017, becoming more sustainable as it spreads across industries and regions, and exports and business investment should boost economic activity in the months ahead. (Reporting by Andrea Hopkins and Leah Schnurr; Editing by Meredith Mazzilli)