[Potlatch-dev] [OpenStreetMap] #4677: ignores first point of GPX track
OpenStreetMap
trac at noreply.openstreetmap.org
Fri Nov 9 00:01:23 GMT 2012
#4677: ignores first point of GPX track
-----------------------+----------------------------
Reporter: miurahr | Owner: potlatch-dev@…
Type: defect | Status: new
Priority: minor | Milestone:
Component: potlatch2 | Version:
Keywords: |
-----------------------+----------------------------
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.
--
Ticket URL: <https://trac.openstreetmap.org/ticket/4677>
OpenStreetMap <http://www.openstreetmap.org/>
OpenStreetMap is a free editable map of the whole world
More information about the Potlatch-dev
mailing list