Opened 5 years ago

#4677 new defect

ignores first point of GPX track

Reported by: miurahr Owned by: potlatch-dev@…
Priority: minor Milestone:
Component: potlatch2 Version:
Keywords: Cc:

Description

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.

Change History (0)

Note: See TracTickets for help on using tickets.