Taking 2 GPX files and determine if they travelled the same route in close proximityFind GPX files which...

Crossed out red box fitting tightly around image

What does a straight horizontal line above a few notes, after a changed tempo mean?

Can someone publish a story that happened to you?

Apply a different color ramp to subset of categorized symbols in QGIS?

How exactly does Hawking radiation decrease the mass of black holes?

Check if a string is entirely made of the same substring

Are there moral objections to a life motivated purely by money? How to sway a person from this lifestyle?

What to do with someone that cheated their way through university and a PhD program?

How important is it that $TERM is correct?

How much cash can I safely carry into the USA and avoid civil forfeiture?

How can I practically buy stocks?

Why must Chinese maps be obfuscated?

Extracting Dirichlet series coefficients

Co-worker works way more than he should

Does a large simulator bay have standard public address announcements?

Prove that the countable union of countable sets is also countable

How bug prioritization works in agile projects vs non agile

Why doesn't the standard consider a template constructor as a copy constructor?

What does MLD stand for?

std::unique_ptr of base class holding reference of derived class does not show warning in gcc compiler while naked pointer shows it. Why?

What does "function" actually mean in music?

How to keep bees out of canned beverages?

"My boss was furious with me and I have been fired" vs. "My boss was furious with me and I was fired"

Does the damage from the Absorb Elements spell apply to your next attack, or to your first attack on your next turn?



Taking 2 GPX files and determine if they travelled the same route in close proximity


Find GPX files which contain tracks located in a specified bounding boxWhy does my gpx layer go to the wrong spot even if they have the same CRS?How to preserve GPX track point (trkpt) info when performing ogr2ogr with sql ST_union operationCompute for shortest/perpendicular distance between track point and centerlineGPS Track Editor to crop tracks with select by clicking start and end pointsHow to bulk import gpx files to QGIS and merge into a single shapefile?How to calculate location at given time from GPX trackFind the theoretically fastest route based on many partially overlapping GPX tracksSimple workflow for a GPX track export from GIS data, avoiding illogical geometry (on QGIS)?Coding Strava Flyby using Python and two GPX files?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I am trying to write a python program for personal use that takes in 2 GPX files and matches segments and tells if one of the gpx files is trailing the other. For example, if two runners ran on the same trail within 100 meters apart for some section of the trail the program would be able to return how long the where within the specified distance of each other.



At the moment I have parsed the file using gpxpy.



`openGpxFile = open(fileName, 'r')
parsedGpxFile = gpxpy.parse(openGpxFile)
track1 = parsedGpxFile.tracks[0].segments[0].points`


And then put the data from each track into an array with the following loop



cords = []
points = 0
for point in track:
cord = [point.longitude, point.latitude, point.time]
cords.append(cord)


My next steps in theory would be to




  • Buffer that lat and long coordinates to adjust for jitteriness (not sure best way to do this)

  • Find overlapping segments (not sure how to do this)

  • If there are overlapping segments, line up the tracks by time stamps for the given region and calculate distance apart from a point on track1 to the point with the corresponding on track2 (not sure how to do this either)


Not sure if this idea is effective, and if it is how any of the steps can be implemented and what libraries would be good to use.










share|improve this question







New contributor




pythonmapper is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



























    0















    I am trying to write a python program for personal use that takes in 2 GPX files and matches segments and tells if one of the gpx files is trailing the other. For example, if two runners ran on the same trail within 100 meters apart for some section of the trail the program would be able to return how long the where within the specified distance of each other.



    At the moment I have parsed the file using gpxpy.



    `openGpxFile = open(fileName, 'r')
    parsedGpxFile = gpxpy.parse(openGpxFile)
    track1 = parsedGpxFile.tracks[0].segments[0].points`


    And then put the data from each track into an array with the following loop



    cords = []
    points = 0
    for point in track:
    cord = [point.longitude, point.latitude, point.time]
    cords.append(cord)


    My next steps in theory would be to




    • Buffer that lat and long coordinates to adjust for jitteriness (not sure best way to do this)

    • Find overlapping segments (not sure how to do this)

    • If there are overlapping segments, line up the tracks by time stamps for the given region and calculate distance apart from a point on track1 to the point with the corresponding on track2 (not sure how to do this either)


    Not sure if this idea is effective, and if it is how any of the steps can be implemented and what libraries would be good to use.










    share|improve this question







    New contributor




    pythonmapper is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I am trying to write a python program for personal use that takes in 2 GPX files and matches segments and tells if one of the gpx files is trailing the other. For example, if two runners ran on the same trail within 100 meters apart for some section of the trail the program would be able to return how long the where within the specified distance of each other.



      At the moment I have parsed the file using gpxpy.



      `openGpxFile = open(fileName, 'r')
      parsedGpxFile = gpxpy.parse(openGpxFile)
      track1 = parsedGpxFile.tracks[0].segments[0].points`


      And then put the data from each track into an array with the following loop



      cords = []
      points = 0
      for point in track:
      cord = [point.longitude, point.latitude, point.time]
      cords.append(cord)


      My next steps in theory would be to




      • Buffer that lat and long coordinates to adjust for jitteriness (not sure best way to do this)

      • Find overlapping segments (not sure how to do this)

      • If there are overlapping segments, line up the tracks by time stamps for the given region and calculate distance apart from a point on track1 to the point with the corresponding on track2 (not sure how to do this either)


      Not sure if this idea is effective, and if it is how any of the steps can be implemented and what libraries would be good to use.










      share|improve this question







      New contributor




      pythonmapper is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I am trying to write a python program for personal use that takes in 2 GPX files and matches segments and tells if one of the gpx files is trailing the other. For example, if two runners ran on the same trail within 100 meters apart for some section of the trail the program would be able to return how long the where within the specified distance of each other.



      At the moment I have parsed the file using gpxpy.



      `openGpxFile = open(fileName, 'r')
      parsedGpxFile = gpxpy.parse(openGpxFile)
      track1 = parsedGpxFile.tracks[0].segments[0].points`


      And then put the data from each track into an array with the following loop



      cords = []
      points = 0
      for point in track:
      cord = [point.longitude, point.latitude, point.time]
      cords.append(cord)


      My next steps in theory would be to




      • Buffer that lat and long coordinates to adjust for jitteriness (not sure best way to do this)

      • Find overlapping segments (not sure how to do this)

      • If there are overlapping segments, line up the tracks by time stamps for the given region and calculate distance apart from a point on track1 to the point with the corresponding on track2 (not sure how to do this either)


      Not sure if this idea is effective, and if it is how any of the steps can be implemented and what libraries would be good to use.







      python gpx






      share|improve this question







      New contributor




      pythonmapper is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      pythonmapper is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      pythonmapper is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 14 mins ago









      pythonmapperpythonmapper

      1




      1




      New contributor




      pythonmapper is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      pythonmapper is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      pythonmapper is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "79"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          pythonmapper is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f320902%2ftaking-2-gpx-files-and-determine-if-they-travelled-the-same-route-in-close-proxi%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          pythonmapper is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          pythonmapper is a new contributor. Be nice, and check out our Code of Conduct.













          pythonmapper is a new contributor. Be nice, and check out our Code of Conduct.












          pythonmapper is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f320902%2ftaking-2-gpx-files-and-determine-if-they-travelled-the-same-route-in-close-proxi%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Щит и меч (фильм) Содержание Названия серий | Сюжет |...

          Венесуэла на летних Олимпийских играх 2000 Содержание Состав...

          Meter-Bus Содержание Параметры шины | Стандартизация |...