This is not the case for transitioning from a temporary residence permit to a permanent residence permit, which is the best analogue to the USA’s Green Card. In most European countries, one does that within the country (and often within the same province one lives, at a regional office).