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

Support KML import including styles #21826

Open
skitourenguru opened this issue Jan 30, 2025 · 2 comments
Open

Support KML import including styles #21826

skitourenguru opened this issue Jan 30, 2025 · 2 comments

Comments

@skitourenguru
Copy link

skitourenguru commented Jan 30, 2025

Describe the idea

The KML is the only format that links geometries to styles. Its a common exchange format. Is it possible that OsmAnd implements the import of KML files including its styling???
Attached in the zip file you find a sample KML with MultiLine-Geometries in 3 colors. They represent avalanche risk (green, orange, red). The Map-Viewer of Swisstopo and GoogleEarth can display the full content of KML's. See this example:

Image

Switzerland_Segments_en_Route00302.zip

Expected behaviour

Display of KML geometries including styles.

Alternatives you've considered

Eventually it would be possible to convert the KML to a OSM-Format and add some styling rules to the Map-Styling. Don't know if this is possible for Multi-Line.

Context

Skitourenguru is a WebApp that supports you in the selection and planning of a suitable ski tour with low avalanche risk. For this purpose, Skitourenguru assigns daily an avalanche risk to thousands of ski tours in the alpine region.
As OsmAnd is the Navigation-App highly recommended by Skitourenguru (News) it would be a great feature, if OsmAnd was able to display the routes as KML in three colors.

@skitourenguru skitourenguru changed the title Support KML import Support KML import including styles Jan 30, 2025
@mariush444
Copy link
Contributor

mariush444 commented Feb 2, 2025

in mean time maybe some converters can help you

http://osmand.net/docs/user/troubleshooting/resources#converters

@yuriiurshuliak
Copy link

This behavior is reproducible.
Steps to Reproduce:

  1. Download the attached Switzerland_Segments_en_Route00302.zip containing the KML file from the issue description.
  2. Open OsmAnd and import the KML file.
  3. Observe how the file is displayed during and after the import.
  • Actual Outcome: OsmAnd fails to display or maintain the original color-coding and styles defined in the KML file (e.g., the green, orange, and red segments for avalanche risks).

OsmAnd~ 5.0.0#4290m, released: 2025-02-03

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

3 participants