The City of Waterloo has obtained a court injunction to prevent unsanctioned gatherings during St. Patrick's Day in the University District, threatening arrests and legal consequences.