remove redundant vertices to simplify rectangle geometries