This question already has an answer here:
I got vector points on a map. I already have the elevation information in the table for each vector point and the point-id. Now I want to get the GPS coordinates for each point stored in this attribute table. How can I do that?
Overall my aim is to get to know the gradient on this line which I divided into those points.