Modify

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#13717 closed enhancement (fixed)

[Patch] GPX->OSM: convert additional gpx-tags

Reported by: Luebeck Owned by: simon04
Priority: normal Milestone: 16.10
Component: Core Version:
Keywords: gpx icon tags Cc:

Description

when waypoints of gpx-file will be convert into osm a limeted count of tags will be transform.

it would be good if following tags will be transform additional:

desc => description
cmt => note
sym => gpxicon (this is helpfull if the user defines custom-icons. now he is able to define a special mapcss-file for evaluate his data)

Jan

Attachments (2)

13717.gpx (488 bytes ) - added by simon04 7 years ago.
test file
13717.patch (2.1 KB ) - added by simon04 7 years ago.

Download all attachments as: .zip

Change History (22)

by simon04, 7 years ago

Attachment: 13717.gpx added

test file

comment:2 by simon04, 7 years ago

Milestone: 16.10
Owner: changed from team to simon04
Summary: GPX->OSM: convert additional gpx-tags[Patch] GPX->OSM: convert additional gpx-tags

by simon04, 7 years ago

Attachment: 13717.patch added

comment:3 by simon04, 7 years ago

Milestone: 16.1016.11

Milestone renamed

comment:4 by simon04, 7 years ago

Resolution: fixed
Status: newclosed

In 11089/josm:

fix #13717 - Enhance and allow customization of tag mapping when converting GPX markers to OSM data

comment:5 by simon04, 7 years ago

Milestone: 16.1116.10

comment:6 by Klumbumbus, 7 years ago

How does this work? It seems I need to modify the advanced preference key gpx.to-osm-mapping, however I don't have this key in my list. I thought that since a change some months ago all available keys are in the list even when not yet used or modified.

in reply to:  6 comment:7 by skyper, 7 years ago

Replying to Klumbumbus:

I thought that since a change some months ago all available keys are in the list even when not yet used or modified.

Apparently not.

comment:8 by Klumbumbus, 7 years ago

Found the ticket: #12522

comment:10 by simon04, 7 years ago

In 11334/josm:

see #13717 - ConvertToDataLayerAction: use GpxConstants

comment:11 by StephaneP, 7 years ago

I don't really understand how to use this feature.
Is it possible to get the timestamp on each node when converting a gpx to a osm layer ?

in reply to:  11 comment:12 by Klumbumbus, 7 years ago

Replying to StephaneP:

I don't really understand how to use this feature.

See the documentation at Help/Action/ConvertToDataLayer

Is it possible to get the timestamp on each node when converting a gpx to a osm layer ?

The timestamp is stored in the gpx file with the keyword "time". So you need to add an additional pair in the gpx.to-osm-mapping key in the advanced preferences, e.g. "time""survey_date".

comment:13 by anonymous, 7 years ago

It doesn't work, and the documentation does not help.

the gpx.to-osm-mapping key isn't in the list so I have to create it. Ok, but which type ? Simple, list, list of lists, list of maps ?
Then I just enter time,survey_date as values ?

comment:14 by Klumbumbus, 7 years ago

You need to use josm version >11089 or better >11334

Do a gpx waypoint to data layer conversion once, then you will have the gpx.to-osm-mapping key in your advanced preferences. You can modify it then.

in reply to:  14 comment:15 by StephaneP, 7 years ago

I was using josm 11223 and now, r11355, and I don't have the gpx.to-osm-mapping key in the advanced preferences panel after a gpx to data conversion.

comment:16 by Klumbumbus, 7 years ago

Do you want to convert a gpx layer or a marker layer (see Help/Dialog/LayerList#Layertypes)?

comment:17 by StephaneP, 7 years ago

a gpx layer

comment:18 by Klumbumbus, 7 years ago

The conversion is currently only available for marker layers. So only for waypoints, not trackpoints.
I don't know if it makes sense to make it available for trackpoints too.

comment:19 by StephaneP, 7 years ago

For me, it makes sense :-)
x,y,z, time are the basics in a gpx file.
For now, we can edit x,y only.

comment:20 by simon04, 7 years ago

Let's discuss the trackpoints conversion at #14103.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain simon04.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.