Add funciton to add polygon and assign it to a feature id.