Changes between Version 1 and Version 2 of Ticket #16995, comment 7


Ignore:
Timestamp:
2018-11-17T01:59:08+01:00 (5 years ago)
Author:
cmuelle8

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16995, comment 7

    v1 v2  
    11@Don-vip:  I can confirm the problem and have a look at it currently.
    22
    3 The code depends on functions added 3 years ago in changeset:8565 in AbstractPrimitive.java.  The GpxExport should add the timestamp of the last/current revision of the primitive.  For the example given in comment:3 this should be the timestamp of field "Edited at:"
     3~~The code depends on functions added 3 years ago in changeset:8565 in AbstractPrimitive.java.  The GpxExport should add the timestamp of the last/current revision of the primitive.  For the example given in comment:3 this should be the timestamp of field "Edited at:"~~
    44{{{
    55Node: 415817033
     
    1717}}}
    1818
    19 Aside from this conversion being incorrect atm, question is whether node timestamps exported to GPX are meaningful at all!?  As the exported track is synthesized, there are three options to fill timestamp attribute of waypoints:
     19~~Aside from this conversion being incorrect atm, question is whether node timestamps exported to GPX are meaningful at all!?  As the exported track is synthesized, there are three options to fill timestamp attribute of waypoints:~~
    2020
    21 * synthesize timestamps (i.e. take start date from last-edit-timestamp of the relation itself, and artificially increment by a fixed or variable amount for each node)
     21* '''synthesize timestamps''' (i.e. ~~take start date from last-edit-timestamp of the relation itself~~ take current date or offset, and artificially increment by a fixed or variable amount for each node)
    2222* re-use last-edited-timestamp of osm nodes (should be current default, does not work, but is it meaningful!?)
    2323* do not export timestamps
    2424
    25 Another issue is that we DO NOT want these gpx track exports to be uploaded to OSM, which I believe blocks gpx uploads with invalid or no wpt timestamps (haven't tried).  While synthesizing meaningful timestamps may be appealing to a user, we would have to think about measures that makes it, by default, easy to discriminate such exports from tracked device data.
     25An~~other~~ issue is that we DO NOT want these gpx track exports to be uploaded to OSM, which I believe blocks gpx uploads with invalid or no wpt timestamps (haven't tried).  ~~While synthesizing meaningful timestamps may be appealing to a user, we would have to think about measures that makes it, by default, easy to discriminate such exports from tracked device data.~~
    2626
    2727Of course, using gpsbabel or a text editor, it will always be possible to further modify such exports, but the main point should be to protect the gpx upload feature of the osm website from thoughtless or accidental use when fed with synthesized tracks.
     
    2929-----
    3030
    31 Because of these issues, it may be best to turn off waypoint timestamping for these exports all together, given that last-edit-timestamps of osm nodes is of little use (!?) even if it would work correctly.  It may be nice as a debug feature to the GpxExportAction itself, but it should have little value to prod-users.
     31~~Because of these issues, it may be best to turn off waypoint timestamping for these exports all together, given that last-edit-timestamps of osm nodes is of little use (!?) even if it would work correctly.  It may be nice as a debug feature to the GpxExportAction itself, but it should have little value to prod-users.~~
    3232
    3333What are your oppinions on the issues raised?
    3434
     35EDIT: Stroke out some sections to reflect current state of the export code, last-edit-timestamp of the node has to date never been used in {{{ExportRelationToGPXAction}}}, it has always (attempted to) synthesize timestamps to be sequential from an offset close to the time the export function is used  (read  now() - 24 hours offset to be exact).