edited geometry to polygon