Mario-F-F / GPXVelocityCalculation

1 stars 0 forks source link

More accurate distance calculation needed #3

Open magerlin opened 7 years ago

magerlin commented 7 years ago

I think the d.convertMeasurement(delta_dist, Qgis.Degrees, Qgis.Meters,True) should be used in stead of just multiplying distance with 10000 in line 348 and 370.

In an actual GPX file I have from Croatia the sum of Dist_i is 32 .8 km while Qgis calculates the length as 28.6 km - a difference of 15%, which means that calculated speeds are 15% too low.

test.zip

See more here: https://books.google.com/books?id=rfirBwAAQBAJ&pg=PA46&lpg=PA46&dq=d.measureLine&source=bl&ots=JgA2ww7pMc&sig=hwdwhBLFVMYF_WxssccOsUZvjZw&hl=en&sa=X&ved=0ahUKEwjDvfjGmZXUAhVEFywKHZtxBxgQ6AEINzAD#v=onepage&q=d.measureLine&f=false