added spatial coordinates for output if XY information is used.