Author Topic: Adding chevrons to OSM maps  (Read 1755 times)

Adding chevrons to OSM maps
« on: April 08, 2011, 11:49:32 am »
I've loaded your maps, Andy onto my new acquisition (etrex legen HCx). Fab maps are, too. Nice to zoom in and see the detailed contour lines.

One thing I find missing is the chevrons. Do you know if it's possible to add these to OSM?  I fancy using the etrex to start recording some routes and improving bits of OSM.
<i>Marmite slave</i>

Re: Adding chevrons to OSM maps
« Reply #1 on: April 08, 2011, 12:33:00 pm »
Do you mean the steep hill chevrons as used on OS 1:50,000?  There is not enough resolution in the contours avaialable to OSM for that.

corshamjim

Re: Adding chevrons to OSM maps
« Reply #2 on: April 08, 2011, 12:38:35 pm »
I don't suppose there's anything to stop someone from adding a new tag for gradient and adding them manually, assessing the gradient using on-the-ground survey rather than deriving from the contour data.  Whether anyone would actually render them is another matter altogether though!

Re: Adding chevrons to OSM maps
« Reply #3 on: April 08, 2011, 12:55:55 pm »
 This requires a huge amount of detail to render well. www.openmtbmap.org  He might be persuaded to render the chevron detail.

I think it's a bit impractical though, you would need the chevrons on both sides of many underpasses.

Re: Adding chevrons to OSM maps
« Reply #4 on: April 08, 2011, 01:02:05 pm »
I don't suppose there's anything to stop someone from adding a new tag for gradient and adding them manually, assessing the gradient using on-the-ground survey rather than deriving from the contour data.  Whether anyone would actually render them is another matter altogether though!
That's the approach I was thinking of.

Why do you think it's excessive?

The maps I've downloaded from andygates include massive detail - locations of phone boxes, cafes, etc.
<i>Marmite slave</i>

corshamjim

Re: Adding chevrons to OSM maps
« Reply #5 on: April 08, 2011, 01:14:18 pm »
Why do you think it's excessive?

Assuming that question was addressed at me, I don't think it's excessive as such.  Personally I would rather such detail were added by personal survey than deriving from often imperfect external data sources.  You and I might agree on that, but unless pretty much everyone is prepared to take that work on board the map would end up with some steep gradients mapped, but most not and little prospect of the map ever becoming 'complete'.

The people who render maps would probably only choose to render the steep gradient tag if it were reasonably well adopted (I guess - I'm not someone who renders maps myself).

Doing a quick google for it, it would seem that someone has already used the tag "gradient=steep".  Only the once though.  See OpenStreetMap Tagwatch for Great_britain :: Tag:source=* Statistics and search for the word "gradient".

"incline=steep" is slightly more popular with 7 instances in Great Britain.

fuaran

  • rothair gasta
Re: Adding chevrons to OSM maps
« Reply #6 on: April 08, 2011, 01:17:48 pm »
There is a tag for incline, which is quite commonly used. Key:incline - OpenStreetMap Wiki
I don't know how hard it would to get Mkgmap to show symbols for these. You would want different symbols based on the value of the incline, the direction, and how long the way it etc.

andygates

  • Peroxide Viking
Re: Adding chevrons to OSM maps
« Reply #7 on: April 08, 2011, 02:05:15 pm »
The way I'd consider that would be with a new item in the points list, for incline=*, which shows a new custom icon to be drawn up in the typ-file; that icon could be the bogstandard "black wedge" GB road sign.



There's not much resolution in 16x16 for more detail. 

It would be nice to do OS-style chevrons, but icons don't draw relative to the map lines under them: they're all always the right way up.  An informative sign plonked on the point is a decent best effort, I think.

I'd love to get it at low zoom levels, too, so you could plan routes sensibly, but I've never had a ton of joy with zoom levels.  Any ideas, osm_nerds?
It takes blood and guts to be this cool but I'm still just a cliché.
OpenStreetMap UK & IRL Streetmap & Topo: ravenfamily.org/andyg/maps updates weekly.

frankly frankie

  • I kid you not
    • Fuchsiaphile
Re: Adding chevrons to OSM maps
« Reply #8 on: April 08, 2011, 06:28:50 pm »
Personally I would rather such detail were added by personal survey than deriving from often imperfect external data sources.  You and I might agree on that, but unless pretty much everyone is prepared to take that work on board the map would end up with some steep gradients mapped, but most not and little prospect of the map ever becoming 'complete'.

That's only the same as the present situation with roads themselves, or road names, or roundabouts, or any number of other features.  Just further down the adoption curve, is all.
"This is a complex subject, with a need for more than one highlighter pen."

andygates

  • Peroxide Viking
Re: Adding chevrons to OSM maps
« Reply #9 on: April 08, 2011, 07:58:44 pm »
Aye, like buildings and street numbers: the kind of detail that rezzes-in late in the edit cycle.  Such is wiki-nature.

An enterprising geo-nerd might run the streets over the DEM and calculate where they expected chevron gradients to occur.  A derived batch import wouldn't be something the OSM community could embrace -- there are too many possible wibbles -- but it might be a good seed for a working project: "We think these are steep. Are they?"
It takes blood and guts to be this cool but I'm still just a cliché.
OpenStreetMap UK & IRL Streetmap & Topo: ravenfamily.org/andyg/maps updates weekly.

Richard Fairhurst

  • on the trail of the little blue stickers
Re: Adding chevrons to OSM maps
« Reply #10 on: April 11, 2011, 07:21:16 pm »
Don't forget that OS OpenData includes a good quality DEM. You could derive steep gradients from that more accurately than from SRTM (the usual worldwide DEM used by OpenCycleMap and the like), I suspect. Haven't really looked into it though.
cycle.travel - maps and route-planner

andygates

  • Peroxide Viking
Re: Adding chevrons to OSM maps
« Reply #11 on: April 11, 2011, 08:11:31 pm »
I did not know that.

Mind you, I'm having trouble just burning my usual maps at the moment.  :/
It takes blood and guts to be this cool but I'm still just a cliché.
OpenStreetMap UK & IRL Streetmap & Topo: ravenfamily.org/andyg/maps updates weekly.

corshamjim

Re: Adding chevrons to OSM maps
« Reply #12 on: April 11, 2011, 08:55:26 pm »
Andy Allan's blog today was interesting.

Shine  &raquo; Transport Map :: GravityStorm

His philosophy - "render and they will come"

Maybe my earlier post was somewhat pessimistic.

fuaran

  • rothair gasta
Re: Adding chevrons to OSM maps
« Reply #13 on: April 11, 2011, 09:04:49 pm »
Yes, that's the best way to encourage people to map/tag a particular thing - make it show on a map, or useful in some other sort of application.
It could be worth requesting that inclines are rendered on OpenCycleMap (though I don't know how hard it is to do in Mapnik).

Re: Adding chevrons to OSM maps
« Reply #14 on: April 12, 2011, 10:37:43 am »
It would be nice to do OS-style chevrons, but icons don't draw relative to the map lines under them: they're all always the right way up.  An informative sign plonked on the point is a decent best effort, I think.

If you always have the map page on North Up then you could have a set of chevron icons in different orientations.

Would break if you have the map on track up as i'm guessing they wouldn't rotate with the map.

But given that it's vector, can't you just put a vector chevron on the road so that it always points in the right direction?
"Yes please" said Squirrel "biscuits are our favourite things."

andygates

  • Peroxide Viking
Re: Adding chevrons to OSM maps
« Reply #15 on: April 12, 2011, 12:43:52 pm »
If you always have the map page on North Up then you could have a set of chevron icons in different orientations.

Would break if you have the map on track up as i'm guessing they wouldn't rotate with the map.

Even if I used North Up ever, it'd fail because now you have to specify not only the existence of the incline but its orientation.  There's no way to perform that logic in mkgmap for existing inclines.  And it's an ugly cludge!  Broken as specified.   :)

But given that it's vector, can't you just put a vector chevron on the road so that it always points in the right direction?

There is no chevron on the ground.  The point of reference for OSM is the ground truth.  It becomes silly if we start drawing markings with fake roads. 

Yes, that's the best way to encourage people to map/tag a particular thing - make it show on a map, or useful in some other sort of application.
It could be worth requesting that inclines are rendered on OpenCycleMap (though I don't know how hard it is to do in Mapnik).

Now you're talking.  OCM's useful, and steeps are things we want to know.  This sounds like exactly the way in that you'd want to encourage chevron-hunters.   :thumbsup:
It takes blood and guts to be this cool but I'm still just a cliché.
OpenStreetMap UK & IRL Streetmap & Topo: ravenfamily.org/andyg/maps updates weekly.