gpx style import: dashed line from within gpx file

Started by jordyke, October 01, 2019, 09:41:42

0 Members and 1 Guest are viewing this topic.

jordyke

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
  •  

Menion

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.
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

jordyke

Quote from: menion 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.
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>
  •  

Menion

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
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

jordyke

Quote from: menion 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
thx for looking into this. Are there plans off integrating this? It would be very usefull for us.
  •  

Menion

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.
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •