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

OMC gpx -> obf #18866

Open
mariush444 opened this issue Dec 25, 2023 · 6 comments
Open

OMC gpx -> obf #18866

mariush444 opened this issue Dec 25, 2023 · 6 comments

Comments

@mariush444
Copy link
Contributor

is it possible to add support for style of tracks and points?

./utilities.sh convert-gpx-to-obf xxxxx
creates tracks as a very thin red line and track points as red circle with small white star.

It would be nice to have possibility to create tracks with defined width and color as an option.
Track point should be the same as define in gpx (icon and color)

@vshcherb vshcherb added this to the 4.7-backend milestone Dec 27, 2023
@vshcherb
Copy link
Member

To do:
We need to convert color from GPX and icons (from GPX OsmAnd format), so it look identical as GPX and as OBF

@DmitryAlexei DmitryAlexei transferred this issue from osmandapp/OsmAnd-tools Jan 4, 2024
@brad10281
Copy link

brad10281 commented Jan 4, 2024

If you add extensions to each track in the GPX file, it will keep the color when converting to OBF. However, I was not able to get the width to change.

Example:
<trk> <extensions> <color>#00842b</color> <width>10</width> </extensions> <name>Track</name> <trkseg> <trkpt lat="44.486968014389277" lon="-85.290206596255302" /> <trkpt lat="44.486643970012665" lon="-85.290624769404531" /> </trkseg> </trk>

@mariush444
Copy link
Contributor Author

Finally I got the same result. Reddit ;)

@DmitryAlexei
Copy link
Contributor

DmitryAlexei commented Feb 20, 2024

2 tasks:

  • add extensions to data (trk) in .obf
  • improve Android UI

@vshcherb vshcherb modified the milestones: 4.7-backend, 4.8-backend Mar 12, 2024
@brad10281
Copy link

brad10281 commented Jun 14, 2024

Any update here? I would love the ability to change the width of the track in the resulting obf file. Are there any other ways to accomplish this?

@sonora
Copy link
Member

sonora commented Jun 14, 2024

Issue #19892 deals with rhe 'Waypoint' appearance (color/icon) portion of this question and seems currently 'work in progress'.

I am not aware of any activity about the track width, though. It would be coding similarly to what has recently been achieved here: #20051

@vshcherb vshcherb added the ! label Jun 21, 2024
@vshcherb vshcherb modified the milestones: 4.8-backend, 4.9-backend Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants