I have a series of data, minutes and seconds that are associated with latitude and longitude. I would like to calculate the total distance within each minute, getting a value for each minute.
Now I use:
length(
transform(
make_line(
geometry(get_feature_by_id(@layer, $id)),
geometry(get_feature_by_id(@layer, $id+1))
),
'EPSG:4326',
'EPSG:23033'
)
)
Which, however, gives me the measure of each point. Does anyone know how to do?
I don't know why but when i try
aggregate(
@layer,
'sum',
length(
transform(
make_line(
geometry(get_feature_by_id(@layer, $id)),
geometry(get_feature_by_id(@layer, $id+1))
),
'EPSG:4326,
'EPSG:23033'
)
)
)
QGIS crashes
'
at the end of'EPSG:4326
, that's why your syntax is not correct. Correct it and report back if it works like this.