Author Topic: Line width in GPX export  (Read 173 times)

Offline ThomasDaheim

  • Newbie
  • *
  • Posts: 1
    • View Profile
  • Device: Google Pixel 4
Line width in GPX export
« on: August 04, 2020, 20:55:47 »
Hi,

first of all thanks for a great app! I have been using it for a while now and it works like a charme.

When exporting a track as gpx I have run into the following: It contains the gpx extension like

Code: [Select]
<line xmlns="http://www.topografix.com/GPX/gpx_style/0/2">
<color>483D8B</color>
<opacity>0.59</opacity>
<width>6.0</width>
<lineCap>square</lineCap>
<extensions>
<locus:lsColorBase>#96483D8B</locus:lsColorBase>
<locus:lsWidth>6.0</locus:lsWidth>
<locus:lsUnits>PIXELS</locus:lsUnits>
</extensions>
</line>

According to the definition of the line attributes (http://www.topografix.com/GPX/gpx_style/0/2) now the unit of the width is "Width, in millimeters, of the line".

But obviously it should be pixel, since the locus:lsUnits says so.

When opening this track in another viewer the track is drawn 6 millimeters wide...

Anything I can do here to avoid that?

Thanks,
Thomas
 

Offline Menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11872
  • Thanked: 438 times
    • View Profile
    • http://www.asamm.com
  • Device: Pixel 2
Re: Line width in GPX export
« Reply #1 on: August 05, 2020, 22:14:59 »
Hello Thomas,
interesting problem. What do you suggest here? On Android, there is nothing like "millimeters" and I'm surprised that such weird definition is in GPX. I'm trying to find out, if there is a method on how to get correct real physical device size, and can't find anything useful.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
Support email: locus.map@asamm.com