Modify

Opened 9 months ago

Closed 9 months ago

Last modified 7 months 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 9 months ago.
test file
13717.patch (2.1 KB) - added by simon04 9 months ago.

Download all attachments as: .zip

Change History (22)

Changed 9 months ago by simon04

Attachment: 13717.gpx added

test file

comment:2 Changed 9 months ago by simon04

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

Changed 9 months ago by simon04

Attachment: 13717.patch added

comment:3 Changed 9 months ago by simon04

Milestone: 16.1016.11

Milestone renamed

comment:4 Changed 9 months ago by simon04

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 Changed 9 months ago by simon04

Milestone: 16.1116.10

comment:6 Changed 8 months ago by Klumbumbus

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.

comment:7 in reply to:  6 Changed 8 months ago by skyper

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 Changed 8 months ago by Klumbumbus

Found the ticket: #12522

comment:10 Changed 7 months ago by simon04

In 11334/josm:

see #13717 - ConvertToDataLayerAction: use GpxConstants

comment:11 Changed 7 months ago by StephaneP

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 ?

comment:12 in reply to:  11 Changed 7 months ago by Klumbumbus

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 Changed 7 months ago by anonymous

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 Changed 7 months ago by Klumbumbus

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.

comment:15 in reply to:  14 Changed 7 months ago by StephaneP

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 Changed 7 months ago by Klumbumbus

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

comment:17 Changed 7 months ago by StephaneP

a gpx layer

comment:18 Changed 7 months ago by Klumbumbus

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 Changed 7 months ago by StephaneP

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 Changed 7 months ago by simon04

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. Next status will be 'closed'.
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.