Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] When i delete this point, the time stamps of the points after it increase #136

Open
lwky opened this issue Oct 11, 2024 · 1 comment

Comments

@lwky
Copy link

lwky commented Oct 11, 2024

I was working on some erratic gps data, when deleting this point (at this zoom level), the points after it go up in time. The amount of zoom seems to influence the time added.

Screenshot 2024-10-11 at 20 58 20 Screenshot 2024-10-11 at 20 58 32

gpx data:

<?xml version="1.0" encoding="UTF-8"?>
<gpx xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.garmin.com/xmlschemas/GpxExtensions/v3 http://www.garmin.com/xmlschemas/GpxExtensionsv3.xsd http://www.garmin.com/xmlschemas/TrackPointExtension/v1 http://www.garmin.com/xmlschemas/TrackPointExtensionv1.xsd http://www.garmin.com/xmlschemas/PowerExtension/v1 http://www.garmin.com/xmlschemas/PowerExtensionv1.xsd http://www.topografix.com/GPX/gpx_style/0/2 http://www.topografix.com/GPX/gpx_style/0/2/gpx_style.xsd" creator="StravaGPX" version="1.1" xmlns="http://www.topografix.com/GPX/1/1" xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1" xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3" xmlns:gpxpx="http://www.garmin.com/xmlschemas/PowerExtension/v1" xmlns:gpx_style="http://www.topografix.com/GPX/gpx_style/0/2">
  <metadata>
    <name>gpx_time_duration_bug</name>
    <author>
      <name>gpx.studio</name>
      <link href="https://gpx.studio"/>
    </author>
    <time>2024-10-11T10:37:15.000Z</time>
  </metadata>
  <trk>
    <name>24.76</name>
    <type>running</type>
    <trkseg>
      <trkpt lat="52.105965" lon="5.115971">
        <ele>7.2</ele>
        <time>2024-10-11T10:53:56.356Z</time>
      </trkpt>
      <trkpt lat="52.105988" lon="5.115888">
        <ele>7.2</ele>
        <time>2024-10-11T10:54:02.000Z</time>
      </trkpt>
      <trkpt lat="52.109116" lon="5.113624">
        <ele>3.5</ele>
        <time>2024-10-11T10:56:31.478Z</time>
      </trkpt>
      <trkpt lat="52.109116" lon="5.113624">
        <ele>2.4909019591761683</ele>
        <time>2024-10-11T10:56:31.478Z</time>
      </trkpt>
      <trkpt lat="52.108671237613805" lon="5.1137317658348485">
        <ele>3</ele>
        <time>2024-10-11T10:56:51.113Z</time>
      </trkpt>
      <trkpt lat="52.1082264752276" lon="5.113839531669697">
        <ele>4.353878992066709</ele>
        <time>2024-10-11T10:57:10.748Z</time>
      </trkpt>
      <trkpt lat="52.10778171284141" lon="5.113947297504546">
        <ele>2.9645129548165894</ele>
        <time>2024-10-11T10:57:30.383Z</time>
      </trkpt>
      <trkpt lat="52.107336950455206" lon="5.114055063339395">
        <ele>2.228199890908684</ele>
        <time>2024-10-11T10:57:50.018Z</time>
      </trkpt>
      <trkpt lat="52.107168" lon="5.114096">
        <ele>2.6390763401524566</ele>
        <time>2024-10-11T10:57:57.476Z</time>
      </trkpt>
      <trkpt lat="52.107168" lon="5.114096">
        <ele>3.2</ele>
        <time>2024-10-11T10:57:57.476Z</time>
      </trkpt>
      <trkpt lat="52.107168" lon="5.114096">
        <ele>3.2</ele>
        <time>2024-10-11T10:57:57.476Z</time>
      </trkpt>
      <trkpt lat="52.107168" lon="5.114096">
        <ele>3.2</ele>
        <time>2024-10-11T10:57:58.476Z</time>
      </trkpt>
      <trkpt lat="52.107169" lon="5.114097">
        <ele>3.2</ele>
        <time>2024-10-11T10:57:59.476Z</time>
      </trkpt>
      <trkpt lat="52.107169" lon="5.114097">
        <ele>3.2</ele>
        <time>2024-10-11T10:58:00.476Z</time>
      </trkpt>
      <trkpt lat="52.107169" lon="5.114097">
        <ele>3.2</ele>
        <time>2024-10-11T10:58:01.476Z</time>
      </trkpt>
      <trkpt lat="52.107169" lon="5.114097">
        <ele>3.2</ele>
        <time>2024-10-11T10:58:02.476Z</time>
      </trkpt>
      <trkpt lat="52.107166" lon="5.114102">
        <ele>3.2</ele>
        <time>2024-10-11T10:58:03.476Z</time>
      </trkpt>
      <trkpt lat="52.107164" lon="5.114107">
        <ele>3.3</ele>
        <time>2024-10-11T10:58:04.476Z</time>
      </trkpt>
      <trkpt lat="52.107162" lon="5.114109">
        <ele>3.3</ele>
        <time>2024-10-11T10:58:05.476Z</time>
      </trkpt>
      <trkpt lat="52.10716" lon="5.114112">
        <ele>3.3</ele>
        <time>2024-10-11T10:58:06.476Z</time>
      </trkpt>
      <trkpt lat="52.107159" lon="5.114114">
        <ele>3.3</ele>
        <time>2024-10-11T10:58:07.476Z</time>
      </trkpt>
      <trkpt lat="52.107159" lon="5.114115">
        <ele>3.3</ele>
        <time>2024-10-11T10:58:08.476Z</time>
      </trkpt>
      <trkpt lat="52.107141" lon="5.114143">
        <ele>3.3</ele>
        <time>2024-10-11T10:58:09.476Z</time>
      </trkpt>
      <trkpt lat="52.107122" lon="5.11417">
        <ele>3.3</ele>
        <time>2024-10-11T10:58:10.476Z</time>
      </trkpt>
      <trkpt lat="52.107104" lon="5.114198">
        <ele>3.4</ele>
        <time>2024-10-11T10:58:11.476Z</time>
      </trkpt>
      <trkpt lat="52.107086" lon="5.114226">
        <ele>3.5</ele>
        <time>2024-10-11T10:58:12.476Z</time>
      </trkpt>
      <trkpt lat="52.107068" lon="5.114254">
        <ele>3.5</ele>
        <time>2024-10-11T10:58:13.476Z</time>
      </trkpt>
      <trkpt lat="52.10705" lon="5.114281">
        <ele>3.6</ele>
        <time>2024-10-11T10:58:14.476Z</time>
      </trkpt>
      <trkpt lat="52.107032" lon="5.114309">
        <ele>3.7</ele>
        <time>2024-10-11T10:58:15.476Z</time>
      </trkpt>
      <trkpt lat="52.107013" lon="5.114337">
        <ele>3.7</ele>
        <time>2024-10-11T10:58:16.476Z</time>
      </trkpt>
      <trkpt lat="52.106995" lon="5.114364">
        <ele>3.8</ele>
        <time>2024-10-11T10:58:17.476Z</time>
      </trkpt>
      <trkpt lat="52.106977" lon="5.114392">
        <ele>3.9</ele>
        <time>2024-10-11T10:58:18.476Z</time>
      </trkpt>
      <trkpt lat="52.106959" lon="5.11442">
        <ele>3.9</ele>
        <time>2024-10-11T10:58:19.476Z</time>
      </trkpt>
      <trkpt lat="52.106941" lon="5.114447">
        <ele>4</ele>
        <time>2024-10-11T10:58:20.476Z</time>
      </trkpt>
      <trkpt lat="52.106923" lon="5.114475">
        <ele>4.1</ele>
        <time>2024-10-11T10:58:21.476Z</time>
      </trkpt>
      <trkpt lat="52.106905" lon="5.114503">
        <ele>4.1</ele>
        <time>2024-10-11T10:58:22.476Z</time>
      </trkpt>
      <trkpt lat="52.106886" lon="5.11453">
        <ele>4.2</ele>
        <time>2024-10-11T10:58:23.476Z</time>
      </trkpt>
      <trkpt lat="52.106868" lon="5.114558">
        <ele>4.3</ele>
        <time>2024-10-11T10:58:24.476Z</time>
      </trkpt>
      <trkpt lat="52.10685" lon="5.114586">
        <ele>4.3</ele>
        <time>2024-10-11T10:58:25.476Z</time>
      </trkpt>
      <trkpt lat="52.106832" lon="5.114614">
        <ele>4.4</ele>
        <time>2024-10-11T10:58:26.476Z</time>
      </trkpt>
      <trkpt lat="52.106814" lon="5.114641">
        <ele>4.5</ele>
        <time>2024-10-11T10:58:27.476Z</time>
      </trkpt>
      <trkpt lat="52.106796" lon="5.114669">
        <ele>4.5</ele>
        <time>2024-10-11T10:58:28.476Z</time>
      </trkpt>
      <trkpt lat="52.106777" lon="5.114697">
        <ele>4.6</ele>
        <time>2024-10-11T10:58:29.476Z</time>
      </trkpt>
      <trkpt lat="52.106759" lon="5.114724">
        <ele>4.7</ele>
        <time>2024-10-11T10:58:30.476Z</time>
      </trkpt>
      <trkpt lat="52.106741" lon="5.114752">
        <ele>4.8</ele>
        <time>2024-10-11T10:58:31.476Z</time>
      </trkpt>
      <trkpt lat="52.106723" lon="5.11478">
        <ele>4.8</ele>
        <time>2024-10-11T10:58:32.476Z</time>
      </trkpt>
      <trkpt lat="52.106705" lon="5.114807">
        <ele>4.9</ele>
        <time>2024-10-11T10:58:33.476Z</time>
      </trkpt>
      <trkpt lat="52.106687" lon="5.114835">
        <ele>5</ele>
        <time>2024-10-11T10:58:34.476Z</time>
      </trkpt>
      <trkpt lat="52.106669" lon="5.114863">
        <ele>5</ele>
        <time>2024-10-11T10:58:35.476Z</time>
      </trkpt>
      <trkpt lat="52.10665" lon="5.114891">
        <ele>5.1</ele>
        <time>2024-10-11T10:58:36.476Z</time>
      </trkpt>
      <trkpt lat="52.106632" lon="5.114918">
        <ele>5.2</ele>
        <time>2024-10-11T10:58:37.476Z</time>
      </trkpt>
      <trkpt lat="52.106614" lon="5.114946">
        <ele>5.2</ele>
        <time>2024-10-11T10:58:38.476Z</time>
      </trkpt>
      <trkpt lat="52.106596" lon="5.114974">
        <ele>5.3</ele>
        <time>2024-10-11T10:58:39.476Z</time>
      </trkpt>
      <trkpt lat="52.106578" lon="5.115001">
        <ele>5.4</ele>
        <time>2024-10-11T10:58:40.476Z</time>
      </trkpt>
      <trkpt lat="52.10656" lon="5.115029">
        <ele>5.4</ele>
        <time>2024-10-11T10:58:46.476Z</time>
      </trkpt>
      <trkpt lat="52.106541" lon="5.115057">
        <ele>5.5</ele>
        <time>2024-10-11T10:58:51.476Z</time>
      </trkpt>
      <trkpt lat="52.106523" lon="5.115084">
        <ele>5.6</ele>
        <time>2024-10-11T10:58:56.476Z</time>
      </trkpt>
      <trkpt lat="52.106505" lon="5.115112">
        <ele>5.7</ele>
        <time>2024-10-11T10:59:01.476Z</time>
      </trkpt>
      <trkpt lat="52.106487" lon="5.11514">
        <ele>5.7</ele>
        <time>2024-10-11T10:59:06.476Z</time>
      </trkpt>
      <trkpt lat="52.106469" lon="5.115167">
        <ele>5.8</ele>
        <time>2024-10-11T10:59:11.476Z</time>
      </trkpt>
      <trkpt lat="52.106451" lon="5.115195">
        <ele>5.9</ele>
        <time>2024-10-11T10:59:16.476Z</time>
      </trkpt>
      <trkpt lat="52.106433" lon="5.115223">
        <ele>5.9</ele>
        <time>2024-10-11T10:59:21.476Z</time>
      </trkpt>
      <trkpt lat="52.106414" lon="5.115251">
        <ele>6</ele>
        <time>2024-10-11T10:59:26.476Z</time>
      </trkpt>
      <trkpt lat="52.106396" lon="5.115278">
        <ele>6.1</ele>
        <time>2024-10-11T10:59:31.476Z</time>
      </trkpt>
      <trkpt lat="52.106378" lon="5.115306">
        <ele>6.1</ele>
        <time>2024-10-11T10:59:36.476Z</time>
      </trkpt>
      <trkpt lat="52.10636" lon="5.115334">
        <ele>6.2</ele>
        <time>2024-10-11T10:59:41.476Z</time>
      </trkpt>
      <trkpt lat="52.106342" lon="5.115361">
        <ele>6.2</ele>
        <time>2024-10-11T10:59:46.476Z</time>
      </trkpt>
      <trkpt lat="52.106324" lon="5.115389">
        <ele>6.2</ele>
        <time>2024-10-11T10:59:51.476Z</time>
      </trkpt>
      <trkpt lat="52.106305" lon="5.115417">
        <ele>6.3</ele>
        <time>2024-10-11T10:59:56.476Z</time>
      </trkpt>
      <trkpt lat="52.106287" lon="5.115444">
        <ele>6.4</ele>
        <time>2024-10-11T11:00:01.476Z</time>
      </trkpt>
      <trkpt lat="52.106269" lon="5.115472">
        <ele>6.4</ele>
        <time>2024-10-11T11:00:06.476Z</time>
      </trkpt>
      <trkpt lat="52.106251" lon="5.1155">
        <ele>6.5</ele>
        <time>2024-10-11T11:00:11.476Z</time>
      </trkpt>
      <trkpt lat="52.106233" lon="5.115528">
        <ele>6.5</ele>
        <time>2024-10-11T11:00:16.476Z</time>
      </trkpt>
      <trkpt lat="52.106215" lon="5.115555">
        <ele>6.6</ele>
        <time>2024-10-11T11:00:21.476Z</time>
      </trkpt>
      <trkpt lat="52.106197" lon="5.115583">
        <ele>6.6</ele>
        <time>2024-10-11T11:00:26.476Z</time>
      </trkpt>
      <trkpt lat="52.106178" lon="5.115611">
        <ele>6.7</ele>
        <time>2024-10-11T11:00:31.476Z</time>
      </trkpt>
      <trkpt lat="52.10616" lon="5.115638">
        <ele>6.7</ele>
        <time>2024-10-11T11:00:36.476Z</time>
      </trkpt>
      <trkpt lat="52.106049" lon="5.115858">
        <ele>6.9</ele>
        <time>2024-10-11T11:00:41.476Z</time>
      </trkpt>
      <trkpt lat="52.105957" lon="5.11592">
        <ele>7</ele>
        <time>2024-10-11T11:00:46.476Z</time>
      </trkpt>
      <trkpt lat="52.105962" lon="5.115812">
        <ele>7.1</ele>
        <time>2024-10-11T11:00:52.476Z</time>
      </trkpt>
      <trkpt lat="52.105973" lon="5.115798">
        <ele>7.2</ele>
        <time>2024-10-11T11:00:56.476Z</time>
      </trkpt>
      <trkpt lat="52.106036" lon="5.115771">
        <ele>7</ele>
        <time>2024-10-11T11:01:03.476Z</time>
      </trkpt>
      <trkpt lat="52.106032" lon="5.115703">
        <ele>7</ele>
        <time>2024-10-11T11:01:06.476Z</time>
      </trkpt>
      <trkpt lat="52.106053" lon="5.115661">
        <ele>7.1</ele>
        <time>2024-10-11T11:01:12.476Z</time>
      </trkpt>
      <trkpt lat="52.106042" lon="5.115702">
        <ele>7</ele>
        <time>2024-10-11T11:01:16.476Z</time>
      </trkpt>
      <trkpt lat="52.106015" lon="5.115791">
        <ele>7</ele>
        <time>2024-10-11T11:01:21.476Z</time>
      </trkpt>
      <trkpt lat="52.109248" lon="5.113616">
        <ele>3.1</ele>
        <time>2024-10-11T11:01:26.476Z</time>
      </trkpt>
      <trkpt lat="52.109242" lon="5.113597">
        <ele>3.2</ele>
        <time>2024-10-11T11:01:32.476Z</time>
      </trkpt>
      <trkpt lat="52.106014" lon="5.115762">
        <ele>7.1</ele>
        <time>2024-10-11T11:01:36.476Z</time>
      </trkpt>
      <trkpt lat="52.106" lon="5.115896">
        <ele>7</ele>
        <time>2024-10-11T11:01:41.476Z</time>
      </trkpt>
      <trkpt lat="52.109128" lon="5.113655">
        <ele>3.3</ele>
        <time>2024-10-11T11:01:47.476Z</time>
      </trkpt>
      <trkpt lat="52.109145" lon="5.113545">
        <ele>3.4</ele>
        <time>2024-10-11T11:01:48.876Z</time>
      </trkpt>
      <trkpt lat="52.109145" lon="5.113545">
        <ele>2.479689301484335</ele>
        <time>2024-10-11T11:01:48.876Z</time>
      </trkpt>
    </trkseg>
  </trk>
</gpx>
@vcoppe
Copy link
Contributor

vcoppe commented Oct 14, 2024

Do you want to "lock" the timestamps outside of the range that you edit? This is something that I had implemented in the previous version and still need to add to the new one.

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

No branches or pull requests

2 participants