I have a point layer with close to 60.000 points that depict a river course (pixel extracts from satellite image). CRS of the layer is Geographic (Lat, Long).
The pixels are ordered ascendingly from source to outlet with an "ID"
and each pixel has latitude and longitude. I want to know the distance in meter between two consecutive points (e.g. between point "ID"=35144
and "ID"=35145
, between "ID"=35145
and "ID"=35146
, etc.). This sounds very simple but I tried in numerous ways but failed.
I have tried:
- to transform the point layer to a line layer to measure the line segments. However, using the Vector Geometry (points to path) or diverse plugins such as NNJoin or MMQGIS I loose the vertexes (individual pixels) and therefore the point to point distance
- to create a distance matrix but this gets messy too, because it is the same layer. Also, other "nearest neighbour"-tools do not work since it is the same layer.
- to use the field calculator and loop through the rows of my dataset --> but how?