The vote in Scotland has encouraged the Catalan parliament to vote on a resolution to vote on independence from Spain.