extract coordinates from plan