Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

ignores first point of GPX track #4677

Open
openstreetmap-trac opened this issue Jul 23, 2021 · 0 comments
Open

ignores first point of GPX track #4677

openstreetmap-trac opened this issue Jul 23, 2021 · 0 comments

Comments

@openstreetmap-trac
Copy link

Reporter: miurahr
[Submitted to the original trac issue database at 11.27pm, Thursday, 8th November 2012]

Potlatch2 ignores first point of GPX track. Because it ignore points not differ previous, it always ignore first point.

In potlatch2/net/systemeD/halcyon/connection/Trace.as:parseTrkSegs() implements

	if (isNaN(lastlat)) { lastlat = lat; lastlon = lon; }
dist=Trace.greatCircle(lat, lon, lastlat, lastlon);
if (dist>3) {

but it should be something like

 	if (isNaN(lastlat)) { lastlat = lat+3; lastlon = lon; }
dist=Trace.greatCircle(lat, lon, lastlat, lastlon);
if (dist>3) {

always to use first track point.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant