I am trying to calculate the difference between the positions of the same point on two different layers. One layer is a shapefile, other layer is a text file, and each point has a unique identifier, Stationval. Found something similar, using a virtual layer, however my python skills are not good enough to convert this. Was also looking for the Points2One plugin, with no avail.
With all due respect, your question has me confused. If they are "...the same point..." wouldn't the distance thus be zero? I mean, they are the same point, after all.
But, in spite of my confusion, perhaps I can point you to two QGIS tools that may be of help:
- NNJOIN Plugin: Determines the distance From each feature to its nearest single feature
- Vector > Analysis Tools > Distance Matrix tool: This returns the distance from each feature to every other feature (pairwise comparison).