R now receives polygon coordinates in the right format