#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

_______________________________________________
Potlatch-dev mailing list
Potlatch-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/potlatch-dev

Reply via email to