Add position attribute to features