<div dir="ltr">Hi Charles,<div>last summer I messed around a bit with trying to get contour lines into my homemade maps for my Garmin GPSr, using <span style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px;line-height:19.200000762939453px">SRTM2OSM. Unfortunately, I eventually gave up, as I wasn't proficient enough to in the end combine all the data with mkgmap into one map. There are pretty good tutorials for SRTM2OSM in the wiki: </span><font color="#000000" face="sans-serif"><span style="line-height:19.200000762939453px"><a href="http://wiki.openstreetmap.org/wiki/Srtm2osm">http://wiki.openstreetmap.org/wiki/Srtm2osm</a> I don't see anything specific to leaflet, though.</span></font></div>
<div><font color="#000000" face="sans-serif"><span style="line-height:19.200000762939453px"><br></span></font></div><div><font color="#000000" face="sans-serif"><span style="line-height:19.200000762939453px">There are also a bunch of hiking/biking-specific, OSM-based maps out there already, so I'm wondering it those might be good enough for your/their purposes. And if not they might help you developing your own solution. Some examples: </span></font></div>
<div><font color="#000000" face="sans-serif"><span style="line-height:19.200000762939453px"><br></span></font></div><div><font color="#000000" face="sans-serif"><span style="line-height:19.200000762939453px"><a href="http://www.4umaps.eu/online-outdoor-hike-bicycle-map.htm">http://www.4umaps.eu/online-outdoor-hike-bicycle-map.htm</a> (contour lines and hill shading)</span></font></div>
<div><font color="#000000" face="sans-serif"><span style="line-height:19.200000762939453px"><br></span></font></div><div><font color="#000000" face="sans-serif"><span style="line-height:19.200000762939453px"><a href="http://hiking.waymarkedtrails.org/en/">http://hiking.waymarkedtrails.org/en/</a> (only hill shading)</span><br>
</font></div><div><font color="#000000" face="sans-serif"><span style="line-height:19.200000762939453px"><br></span></font></div><div><font color="#000000" face="sans-serif"><span style="line-height:19.200000762939453px"><a href="http://hikebikemap.de/">http://hikebikemap.de/</a> (hill shading and contours in limited area)</span><br>
</font></div><div><font color="#000000" face="sans-serif"><span style="line-height:19.200000762939453px"><br></span></font></div><div><font color="#000000" face="sans-serif"><span style="line-height:19.200000762939453px">And of course the cycling layer on the main page with contour lines.</span></font></div>
<div><font color="#000000" face="sans-serif"><span style="line-height:19.200000762939453px"><br></span></font></div><div><font color="#000000" face="sans-serif"><span style="line-height:19.200000762939453px">There's also this project: <a href="http://wiki.openstreetmap.org/wiki/Route_altitude_profiles_SRTM">http://wiki.openstreetmap.org/wiki/Route_altitude_profiles_SRTM</a> but I'm not sure if this is still under active development. </span></font></div>
<div><font color="#000000" face="sans-serif"><span style="line-height:19.200000762939453px"><br></span></font></div><div><font color="#000000" face="sans-serif"><span style="line-height:19.200000762939453px">As a side note: I had planned to do some mapping with the McGill Outdoors Club in the Prevost area last spring. They're also maintaining their own little network of trails. Unfortunately, that didn't happen in the end, but they were definitely interested in/open to OSM.</span></font></div>
<div><font color="#000000" face="sans-serif"><span style="line-height:19.200000762939453px"><br></span></font></div><div><font color="#000000" face="sans-serif"><span style="line-height:19.200000762939453px"> Harald.</span></font></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Feb 23, 2014 at 3:42 PM, Charles Basenga Kiyanda <span dir="ltr"><<a href="mailto:personal@charleskiyanda.com" target="_blank">personal@charleskiyanda.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm asking the question here since I'm in Canada and can't quite find an<br>
appropriate mailing list. This is a (rather lengthy) question about the<br>
best workflow to show trail information using osm data, leaflet, and gpx<br>
data.<br>
<br>
Background:<br>
I contacted someone at a local volunteer organization that maintains<br>
mountain biking/nordic skiing/snowshoeing trails in the Ste-Adèle area<br>
in Québec. They were nice enough to give me their gpx tracks for all the<br>
trails and I gave one of them a "working with OSM" tutorial in return.<br>
At least one person in that organization is interested in using osm.<br>
<br>
I've been wanting to practice using leaflet and decided to use their<br>
data to make a sample trail viewer that would show the elevation profile<br>
in a popup (using D3) for the different trails. I figure this is good<br>
practice for me and if I can show them something nice they might be more<br>
interested in contributing to osm regularly.<br>
<br>
Specific question:<br>
We don't store elevation data in osm in a standard fashion and I was<br>
hoping I could show the volunteer organization a tentative alternate<br>
workflow that would be as little work for them as possible and also give<br>
them an incentive to keep the osm trail data accurate. Currently, they<br>
use their gpx tracks as the master data and load those on handheld<br>
(commercial) gps units when navigating around to do trail clean up and<br>
other stuff. They also use the gpx data in a commercial software to<br>
generate pdf maps that are distributed on their website.<br>
<br>
I wanted to use leaflet and d3, thinking I could create geojson<br>
polylines (from the osm data) that I show on top of osm image tiles so<br>
the trails would be clickable. Clicking/hovering a given object would<br>
show elevation data. Now, the elevation data is not stored in osm, so<br>
the volunteers would have to keep the gpx files around, which is more<br>
annoying if there's a change to a trail or a new trail.<br>
<br>
Now, I've found a leaflet plugin that uses d3 to overlay a gpx and show<br>
elevation data (<a href="https://github.com/MrMufflon/Leaflet.Elevation" target="_blank">https://github.com/MrMufflon/Leaflet.Elevation</a>), though<br>
that actually gives them an incentive to *not* have the trail data in<br>
osm (otherwise the trails might show up twice when looking at the map:<br>
in the osm image tile and from the gpx overlay).<br>
<br>
I'm (obviously) having a hard time formulating a concise question. I<br>
guess I'm wondering if there's been some thinking about the best<br>
workflow in such a situation.<br>
<br>
Any help would be quite appreciated. I might look in the leaflet<br>
community as well to see if this topic has shown up there.<br>
<br>
Regards,<br>
<br>
Charles<br>
<br>
<br>
_______________________________________________<br>
Talk-ca mailing list<br>
<a href="mailto:Talk-ca@openstreetmap.org">Talk-ca@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/talk-ca" target="_blank">https://lists.openstreetmap.org/listinfo/talk-ca</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Please use encrypted communication whenever possible!<br>Key-ID: 0x34cb93972f186565
</div>