Improved Google Maps KML to OSMAnd style GPX file converter including icon conversion #17030
Replies: 5 comments 7 replies
-
Your links goes to "Didn’t find anything here!" (by clicking). Copy Linktext and paste works... |
Beta Was this translation helpful? Give feedback.
-
if I understand correctly you can choose the color of the icons but not import all the customized ones in googlemap? |
Beta Was this translation helpful? Give feedback.
-
Another converter |
Beta Was this translation helpful? Give feedback.
-
I've created a new utility, GoogleMapToOSMAndGPX, to converts directly from a google map into OSMAnd style GPX files. It can be found here: Git Repository |
Beta Was this translation helpful? Give feedback.
-
@vshcherb |
Beta Was this translation helpful? Give feedback.
-
I did a big rewrite on a KML to OSMAnd GPX converter I wrote a few years back and thought it might be useful to the OSMAnd community. It's written in Python.
Here's the link to the Github repository
[Update]
New version of this utility to import a GMap directly and convert to OSMAnd style GPX files. Most GMap icons are also converted. GoogleMaptoOSMAndGPX
I created this utility because I do all of my trip planning by creating a google my maps map. I want to be able to use OSMAnd offline as many of the locations I travel have no cell coverage so it's important to be able to import these files into OSMAnd.
The KMLtoOSMAndGPX utility converts waypoints and track elements from the KML file. By default all tracks and waypoints are written to a single GPX file. There is an option to write one GPX file per KML layer/folder.
Each waypoint will have it's icon translated according to a table in the program. It will use a fixed color value or optionally the color from the KML file. Description, lat, lon and elevation are all translated.
All tracks will have a fixed line width and transparency which can be specified with command line parameters. Lat, lon and elevation of each track point is translated. Descriptions are translated into the standard GPX description tag, but unfortunately OSMAnd does not display a description for individual tracks. The OSMAnd feature for showing track arrows is set to off. The show splits feature is disabled by default, but can be specified.
When importing the GPX files into OSMAnd you should import all tracks into a single file. If you select the option for OSMAnd to create separate GPX files for each track, the initial track color and width doesn't function correctly.
I admit I may have an incomplete understanding of how OSMAnd handles imported tracks and the app specific extensions tags it uses. I'm unclear how OSMAnd determines it's initial track attributes in all cases. It does appear that OSMAnd does not let you manage the appearance attributes of individual tracks contained within a single GPX file. The show split interval feature does not reset the mileage with each track in a GPX file. Instead the mileage shown on the interval markers is cumulative across all the tracks in the file.
Using the edit appearance menu will reset all the track color and line width values to the same setting, overriding what was specified in the GPX file. Reset to original does not restore the original color or line width values.
Most of my maps have many tracks and waypoints. For example, all the trails, trail junctions, POI's that I'm interested in for a national park. Within OSMAnd I want to be able to turn visibility of these tracks and waypoints on/off as a single file, without having to manage many different GPX files. Ideally, I could view and change the attributes of individual items within a single GPX file, but OSMAnd is still lacking in this area.
Beta Was this translation helpful? Give feedback.
All reactions