lonlat2xyz: Add outputting of an extra column

Program lonlat2xyz converts geographic to cartesian coordinates,
but this update allows you to convert lon,lat(,r),value lines
for subsequent 3D plotting or analysis.