Author Topic: gpx style import: dashed line from within gpx file  (Read 239 times)

Offline jordyke

  • Newbie
  • *
  • Posts: 3
    • View Profile
  • Device: xperia tab
gpx style import: dashed line from within gpx file
« on: October 01, 2019, 09:41:42 »
I am trying to import gpx files with lines that have a pattern. Lines need to be dashed, defined in the gpx itself. I can't seem to get it to work. Map layout is not usable for me since i will generate the gpx from Mysql, with different line styles and colors defined in one gpx.
Can someone post an working example off the gpx content?
thx in advance
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11506
  • Thanked: 334 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: gpx style import: dashed line from within gpx file
« Reply #1 on: October 01, 2019, 11:22:32 »
Hello, not sure if this is currently supported.
Please share small sample track with this style and I'll test it and tell you, why this does not work.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline jordyke

  • Newbie
  • *
  • Posts: 3
    • View Profile
  • Device: xperia tab
Re: gpx style import: dashed line from within gpx file
« Reply #2 on: October 01, 2019, 11:56:02 »
Hello, not sure if this is currently supported.
Please share small sample track with this style and I'll test it and tell you, why this does not work.
Here the gpx content:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<gpx version="1.1" creator="Locus Map, Android"
 xmlns="http://www.topografix.com/GPX/1/1"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"
 xmlns:gpx_style="http://www.topografix.com/GPX/gpx_style/0/2"
 xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3"
 xmlns:gpxtrkx="http://www.garmin.com/xmlschemas/TrackStatsExtension/v1"
 xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v2"
 xmlns:locus="http://www.locusmap.eu">
   <metadata>
      <desc>File with points/tracks from Locus Map/3.39.4</desc>
   </metadata>
<trk>
<name>Test</name>
<desc><![CDATA[<!-- desc_gen:start -->
<!-- desc_gen:end -->]]></desc>
   <extensions>
      <gpx_style:line>
         <gpx_style:color>008000</gpx_style:color>
         <gpx_style:opacity>0.29</gpx_style:opacity>
         <gpx_style:width>20.0</gpx_style:width>
         <gpx_style:pattern>dash</gpx_style:pattern>
         <gpx_style:dasharray>
            <gpx_style:dash mark="4" space="10"></gpx_style:dash>
         </gpx_style:dasharray>
      </gpx_style:line>
   </extensions>
<trkseg>
<trkpt lat="50.920694" lon="4.954408">
</trkpt>
<trkpt lat="50.927194" lon="4.951460">
</trkpt>
<trkpt lat="50.927528" lon="4.951442">
</trkpt>
</trkseg>
</trk>
</gpx>
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11506
  • Thanked: 334 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: gpx style import: dashed line from within gpx file
« Reply #3 on: October 01, 2019, 12:33:15 »
Thanks. I'm checking app source code and I see that only "color", "opacity" and  "width" are used. "pattern" and "dasharray" are currently not used.
Menion
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline jordyke

  • Newbie
  • *
  • Posts: 3
    • View Profile
  • Device: xperia tab
Re: gpx style import: dashed line from within gpx file
« Reply #4 on: October 02, 2019, 09:53:05 »
Thanks. I'm checking app source code and I see that only "color", "opacity" and  "width" are used. "pattern" and "dasharray" are currently not used.
Menion
thx for looking into this. Are there plans off integrating this? It would be very usefull for us.
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11506
  • Thanked: 334 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: gpx style import: dashed line from within gpx file
« Reply #5 on: October 02, 2019, 10:32:03 »
It should be nice, agree. Unfortunately for now not, no plans to extend support for styles in GPX, mainly because you are the first who ask me for this, if I remember correctly.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!