Re: [OSM-dev] likenesses

2009-10-01 Thread Frederik Ramm
Hi,

Eugene Alvin Villar wrote:
 Inasmuch as the underlying concepts are identical (more or less), I 
 don't like the idea that we can use different key name or values to 
 represent those concepts.

Thing is, the underlying concepts will very often be more or less 
identical but never really.

At the risk of expanding this into the vapourware realm, we have a very 
similar problem with hierarchic tagging which we sometimes try to 
solve by chain-tagging like in this fictional example:

natural=water
water=lake
lake=freshwater

We do this so that a renderer that only knows how to render water areas 
can work with this; and a renderer capable of distinguishing freshwater 
mountain reservoirs from quarry ponds (oops... not natural, is it?) 
also has the necessary information.

Now if we introduce a likeness layer as SteveC suggested, that may also 
serve as a general what is what structure. The fact that a quarry pond 
is basically a lake and a lake is basically a body of water would no 
longer have to be explicitly tagged; it would be sufficient to tag 
man_made=quarry_pond and any renderer just interested in bodies of 
water could know that from the likeness layer.

This would make the likeness layer a central point of tagging, and free 
edit access to the likeness layer would become crucial for everyone, but 
at the same time it would allow anybody to invent the most crazy tags 
and say oh well, if the renderer does not understand llwerewta=uwerwssc 
then it may treat this as an ordinary body of water.

Bye
Frederik

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] likenesses

2009-10-01 Thread Emilie Laffray
2009/10/1 SteveC st...@asklater.com

I think it is an interesting idea. It would make some people happy about tag
proliferation and gradually it has the possibility of fixing things up. The
debate on orchard, plantage, farmland could be partially be solved by this
mechanism, while allowing application developers to perform substitution for
whatever need they have.
I agree that we need to look at the keys first. Values will be more
controversial on some aspects :)

Emilie Laffray
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] likenesses

2009-10-01 Thread Dave Stubbs
On Thu, Oct 1, 2009 at 3:25 AM, SteveC st...@asklater.com wrote:
 I want to revive a very old idea - tag equivalences. It might be
 solving a problem that doesn't exist or someone might have done it and
 I've missed it.



Closest I got was the osmosis tagtransform plugin [1].

I made that because people keep insisting on tagging things like
highway=path;bicycle=yes|designated, which is essentially like a
highway=cycleway and we want those rendered on the cycle map. Now for
various reasons, mostly due to laziness, version mismatches, and not
being entirely sure about what the different path combinations mean,
this has never been deployed on the cycle map for real, but anyway.

What I was originally thinking was that what would be nice (and
therefore almost certain to be never developed) would be a proper
tagging app on the OSM website which let people describe their tagging
schemes. Part of that would then be how to get from one scheme to
another. In thinking how you might do that some of the weird and
wonderful ways that schemes differ come to mind and tagtransform was
born.

Back to the likenesses, saying an autobahn is like a motorway makes
sense, is a good start, but very limited. One of the first problems
you hit is what like actually means. In the UK a lot of footpaths
look a lot like a lot of bridleways. So therefore highway=footway is
like highway=bridleway, one allows horses but the other doesn't
otherwise they're mostly the same. But a lot of foot paths are like
cycle paths, which are a lot like tracks which are a lot like service
roads which are a lot like unclassified roads. Anyway it turns out
that just about all roads and paths are transitively like each other
which is a little confusing and not a very useful result. With the
likenesses XML you could sort this out with overlapping likeness
groups but it quickly becomes a problem for renderers if they're
trying to find things which are like a footpath, and things which are
like a cycle path, because lots of things are like both and you don't
know why.

So the way in which something is alike is actually very important.
What may be a better idea is object hierarchies -- ie: is-a links or
mediawiki-like categories.

This way you end up doing things the other way round...

feature
   tag k=highway v=motorway/
   is-aroad/is-a
   is-amajor-road/is-a
   is-abiggest-roads-we've-got/is-a
   is-aroad-with-speedlimit/is-a
   is-aroad-which-meets-uk-reg-blah15/is-a
   is-aroad-which-meets-eu-reg-blah01/is-a
/feature

feature
   tag k=insert german for road or whatever v=autobahn/
   is-aroad/is-a
   is-amajor-road/is-a
   is-abiggest-roads-we've-got/is-a
   is-aroad-which-meets-de-reg-blah97/is-a
   is-aroad-which-meets-eu-reg-blah01/is-a
/feature

(that's very flat, there's no reason you couldn't actually structure
it a bit by introducing the categories as objects with categories, and
those is-a parts could easily be OSM tags specifying actual
speedlimits etc with the expectation these represent the defaults)

So now the renderer can just go for the biggest-roads-we've-got
category, and render anything that matches.

And surprise surprise it ends up looking a heck of a lot like an
editor presets description file [2].

And that fact is interesting because of the question: why didn't we
just tag all the motorways like that in the first place? Screw
highway=motorway, just add
road=yes;major_road=yes;biggest_road_we_have=yes... I can think of a
couple of reasons.
 - we're all lazy and don't want to type it -- editor presets can
negate that one
 - the german government decides to impose a speedlimit so we
immediately get to change the autobahn definition rather than retag
all the objects using an evil bot

One of the big questions is whether all of this would make life easier
or harder for the renderers -- it would definitely raise the tech
start bar.

Dave


[1] http://wiki.openstreetmap.org/wiki/Osmosis/TagTransform
[2] See the potlatch 2 map-features.xml
http://trac.openstreetmap.org/browser/applications/editors/potlatch2/resources/map_features.xml
 -- but there you're limited to one category because it's more for
menu structure than proper categorisation.

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] likenesses

2009-10-01 Thread Andy Allan
On Thu, Oct 1, 2009 at 3:25 AM, SteveC st...@asklater.com wrote:
 I want to revive a very old idea - tag equivalences. It might be
 solving a problem that doesn't exist or someone might have done it and
 I've missed it.

We have already, it's been made and engineered and everything. Don't
mistake endless unproductive waffle on the mailing lists as evidence
that a problem hasn't been solved - it's just people who aren't
capable pleading to the gods to come and save them from themselves.

http://wiki.openstreetmap.org/wiki/Osmosis/TagTransform

Cheers,
Andy

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] likenesses

2009-10-01 Thread Richard Fairhurst

SteveC wrote:
 I want to revive a very old idea - tag equivalences. It might be  
 solving a problem that doesn't exist or someone might have done 
 it and I've missed it.

Wow, lots of issues here. And since

 I'm not a socialist moral relativist

...I am, almost, then I get a head-start on this one. :p

I'm generally with Eugene in agreeing that the words don't mean anything.
Perhaps the best example is highway=trunk. That was invented over here
(*waves at Andy R*) but we don't use it for UK trunk roads. We use it for UK
primary routes. Non-primary routes, we tag as, er, highway=primary.

This can only increase as editors increasingly abstract tagging away from
the keys and values. I've even seem some screenshots of some upcoming editor
or other with these lovely clickable icons with little cars on them - don't
know if you've seen that one?

So motorway or autobahn - meh. It's just words.

But, that aside: yes, we should do it.

We have all sorts of 'implied' tags. highway=motorway implies foot=no and
bicycle=no. junction=roundabout implies oneway=yes. And yes, anything (well,
except name maybe) =true implies =yes.

We also have implication by area. highway=motorway on a road in the UK
implies maxspeed=70mph, whereas in France, it implies maxspeed=110.

Implying things is good, because we optimise for the mapper, not the client.
It does mean the client needs to figure all this out. I've long said we
should (sorry) have standard libraries talking to some sort of dictionary
with all this in: as a first step to a dictionary, the other year I started
(not machine-readable)
http://wiki.openstreetmap.org/wiki/Key:highway#International_equivalence
which has been taken up by a bunch of other people and is, really, the only
sane description of highway types we have. But it's not machine readable.
This looks like the same kind of idea but machine readable, so, yay. Apart
from the XML bit. ;)

cheers
Richard
-- 
View this message in context: 
http://www.nabble.com/likenesses-tp25692251p25696173.html
Sent from the OpenStreetMap - Dev mailing list archive at Nabble.com.


___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] likenesses

2009-10-01 Thread Richard Fairhurst

Dave Stubbs wrote:
 One of the big questions is whether all of this would make life 
 easier or harder for the renderers -- it would definitely raise the 
 tech start bar.

Standard libraries ftw.

People's unwillingness to do any form of pre-processing on an increasingly
varied OSM dataset never ceases to amaze me. One bit of code translated into
Perl/Ruby/AS3/whatever the cool kids are using(tm) sorts it all.

cheers
Richard
-- 
View this message in context: 
http://www.nabble.com/likenesses-tp25692251p25696196.html
Sent from the OpenStreetMap - Dev mailing list archive at Nabble.com.


___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] likenesses

2009-10-01 Thread Andy Allan
On Thu, Oct 1, 2009 at 11:16 AM, Richard Fairhurst rich...@systemed.net wrote:

 Dave Stubbs wrote:
 One of the big questions is whether all of this would make life
 easier or harder for the renderers -- it would definitely raise the
 tech start bar.

 Standard libraries ftw.

 People's unwillingness to do any form of pre-processing on an increasingly
 varied OSM dataset never ceases to amaze me. One bit of code translated into
 Perl/Ruby/AS3/whatever the cool kids are using(tm) sorts it all.

Or merely publishing their TagTransform rulesets, and then the most
useful ones will rise to predominance, perhaps with different ones for
different specialisms. Especially since nearly everyone uses osmosis
at some point in their toolchain.

Cheers,
Andy

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] likenesses

2009-10-01 Thread Matt Amos
On Thu, Oct 1, 2009 at 11:33 AM, Jonathan Bennett
openstreet...@jonno.cix.co.uk wrote:
 Andy Allan wrote:
 We have already, it's been made and engineered and everything. Don't
 mistake endless unproductive waffle on the mailing lists as evidence
 that a problem hasn't been solved - it's just people who aren't
 capable pleading to the gods to come and save them from themselves.

 http://wiki.openstreetmap.org/wiki/Osmosis/TagTransform

 That's a way of dealing with the problem at a data level, but it doesn't
 deal with it at a people level.

 To use TagTransform you either have to accept the presets (which could
 be out of date) or come up with your own transformations, which could
 take a lot of research and still not reflect what mappers are doing.

 If I understand what Steve is talking about, he wants a way for mappers
 to *document* what they think the equivalences are between tags. So that
 would be the source material you'd plug into TagTransform.

 For what it's worth, I think that's the wrong way of going about it. I
 think multiple descriptions of the same tag in different locales is the
 way to go.

+1

there's clearly two places to do this transform; in the editor (i.e:
presets) and as a filter before the app which consumes the data (i.e:
tagtransform). the two places reflect very different types of
transform, though.

translations in the editor are clearly for the benefit of the user,
who might prefer to see straßen-typ=autobahn rather than
highway=motorway. but what really distinguishes an autobahn from a
motorway? i assume there's several differences in the laws regarding
them, but the primary difference is; all the motorways are in the UK
and all the autobahns are in Germany. so it would be inappropriate to
tag anything straßen-typ=autobahn in the UK - even if you prefer to
have the UI in German while you're editing the UK. isn't it easier to
let the editor handle language and locale-specific presentation of the
tag, but leave the data more-or-less consistent?

translations in the consumer are there (usually) to reduce the
vocabulary of OSM down to things that the app can handle. a simple
example might be that, for all their differences, it makes some sense
to render residential and unclassified roads as the same minor road
type. this, also, is probably locale-dependent. there have been
discussions on talk@ before about whether footpaths are also
permissive cycleways in various countries and what the default
implication of higway=footway should be. (disclaimer: i only dimly
remember this, so i may have got it totally wrong). again, it makes
sense to have a fairly universal set of tags in the data with a
locale-specific translation. this translation will also be
domain-specific; only a cycle-specific renderer, or a cycle routing
engine would care about the distinction in the previous example.

while i'm all in favour of a library of tag transforms and editor
presets, i'm against having any fixed, defined set of tag
equivalences. that seems to me like the beginnings of an ontology.

cheers,

matt

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] likenesses

2009-10-01 Thread John Smith
2009/10/1 David Earl da...@frankieandshadow.com:
 On 01/10/2009 03:25, SteveC wrote:
 I want to revive a very old idea - tag equivalences.

 I would like to go further than Steve proposes, but I understand it is a
 hard sell to the anarchist wing of OSM while being welcome to the
 conformist wing. But I really think what I outline below treads a middle
 way. I'm absolutely not proposing to restrict anyone's freedom to add
 new tags or values.

I don't see what your persauation has to do with anything, I'm looking
at this from a practical point of view, it's easier to do translations
in the editor and then have the editor do the processing into a
pre-defined set of tags, rather than having 1000s of servers doing the
translations every time they have to parse the data, that's crazy and
complete waste of CPU time.

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] likenesses

2009-10-01 Thread David Earl
On 01/10/2009 12:54, John Smith wrote:
  2009/10/1 David Earl da...@frankieandshadow.com:
  On 01/10/2009 03:25, SteveC wrote:
  I want to revive a very old idea - tag equivalences.
  I would like to go further than Steve proposes, but I understand it is a
  hard sell to the anarchist wing of OSM while being welcome to the
  conformist wing. But I really think what I outline below treads a middle
  way. I'm absolutely not proposing to restrict anyone's freedom to add
  new tags or values.
 
  I don't see what your persauation has to do with anything,

I was only heading off the inevitable people should be absolutely free 
to do anything they want type comments that have always been among the 
responses to suggestions like this.

  I'm looking
  at this from a practical point of view, it's easier to do translations
  in the editor and then have the editor do the processing into a
  pre-defined set of tags, rather than having 1000s of servers doing the
  translations every time they have to parse the data, that's crazy and
  complete waste of CPU time.

I think you missed the point (and also I was just responding to Steve's 
original message). In my suggestion the translation is done once and 
stored with the tag definition. The editor simply reads and presents it. 
Currently every editor has to have its own translation, and chances are 
also that they will be different. They can also offer common translated 
help beyond just the word that is used for the tag, and everyone gets 
updated when that changes.

Keeping multiple, probably different, descriptions and translations 
across all the programs that use OSM is the thing that seems crazy to me.

David





___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] likenesses

2009-10-01 Thread John Smith
2009/10/1 David Earl da...@frankieandshadow.com:
 Keeping multiple, probably different, descriptions and translations across
 all the programs that use OSM is the thing that seems crazy to me.

Sorry, misunderstood what you were suggesting, I agree 100%

I've done something similar in the past when we want to have
consistency between apps on multiple phone platforms, we store a JSON
encoded array on a work server, the apps download this file and you
get consistency across all platforms, this is the same thing, except
editors :)

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] likenesses

2009-10-01 Thread Iván Sánchez Ortega
El Jueves, 1 de Octubre de 2009, SteveC escribió:
 Thoughts?

Likenesses -1; implications +1.

e.g.:

highway=autobahn implies highway=motorway
highway=motorway implies oneway=yes
highway=motorway implies highway=road


Basically it's just the same idea, but by using the word imply, it suddenly 
becomes a strictly logical proposition. I personally feel that SteveC's 
proposal of likenesses (A is like B) can be misleading, 
whereas implications (A implies B) are univocal. Likenesses are just 
aliases, implications add more meaning to the tags.

So, osm2pgsql (or whatever) should unfold everything, unless there are 
existing values that contradict (e.g. highway=motorway, oneway=no).


(I haven't read the entire thread, but I think some other people already agree 
to this)


Cheers,
-- 
--
Iván Sánchez Ortega i...@sanchezortega.es

http://ivan.sanchezortega.es
MSN:i_eat_s_p_a_m_for_breakf...@hotmail.com
Jabber:ivansanc...@jabber.org ; ivansanc...@kdetalk.net
IRC: ivansanchez @ OFTC  freenode


signature.asc
Description: This is a digitally signed message part.
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] likenesses

2009-10-01 Thread John Smith
2009/10/1 Dave Stubbs osm.l...@randomjunk.co.uk:

 That argument is bogus.
 It's much easier to do the translations on a couple of servers rather
 than make the 100,000's editors more complicated so that they use more
 laptop battery and make all the mappers have to go home early.

Well JOSM is already doing it, so it can't be that bogus...

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] likenesses

2009-10-01 Thread Dave Stubbs
On Thu, Oct 1, 2009 at 1:33 PM, John Smith deltafoxtrot...@gmail.com wrote:
 2009/10/1 Dave Stubbs osm.l...@randomjunk.co.uk:

 That argument is bogus.
 It's much easier to do the translations on a couple of servers rather
 than make the 100,000's editors more complicated so that they use more
 laptop battery and make all the mappers have to go home early.

 Well JOSM is already doing it, so it can't be that bogus...


Oh yes, selective quoting is also a classic.

Dave

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] likenesses

2009-10-01 Thread John Smith
2009/10/1 Dave Stubbs osm.l...@randomjunk.co.uk:
 On Thu, Oct 1, 2009 at 1:33 PM, John Smith deltafoxtrot...@gmail.com wrote:
 2009/10/1 Dave Stubbs osm.l...@randomjunk.co.uk:

 That argument is bogus.
 It's much easier to do the translations on a couple of servers rather
 than make the 100,000's editors more complicated so that they use more
 laptop battery and make all the mappers have to go home early.

 Well JOSM is already doing it, so it can't be that bogus...


 Oh yes, selective quoting is also a classic.

What was your point then?

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] likenesses

2009-10-01 Thread David Lynch
On Thu, Oct 1, 2009 at 06:20, David Earl da...@frankieandshadow.com wrote:
 On 01/10/2009 03:25, SteveC wrote:
 I want to revive a very old idea - tag equivalences.

 I would like to go further than Steve proposes, but I understand it is a
 hard sell to the anarchist wing of OSM while being welcome to the
 conformist wing. But I really think what I outline below treads a middle
 way. I'm absolutely not proposing to restrict anyone's freedom to add
 new tags or values.

 I think it would be really helpful to bring together the tag definitions
 into one place, *in the database and API itself*. I mean a complete
 schema: the tags, their possible values, their descriptions (in multiple
 languages), their equivalences both in other languages and synonyms,
 their related tags (in essence properties of the main descriptive tag,
 hence oneway=... with highway=...), deprecations and so on.


+1

It's possible to have anarchy without chaos.

-- 
David J. Lynch
djly...@gmail.com

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] likenesses

2009-10-01 Thread John Smith
2009/10/2 David Lynch djly...@gmail.com:
 On Thu, Oct 1, 2009 at 06:20, David Earl da...@frankieandshadow.com wrote:
 On 01/10/2009 03:25, SteveC wrote:
 I want to revive a very old idea - tag equivalences.

 I would like to go further than Steve proposes, but I understand it is a
 hard sell to the anarchist wing of OSM while being welcome to the
 conformist wing. But I really think what I outline below treads a middle
 way. I'm absolutely not proposing to restrict anyone's freedom to add
 new tags or values.

 I think it would be really helpful to bring together the tag definitions
 into one place, *in the database and API itself*. I mean a complete
 schema: the tags, their possible values, their descriptions (in multiple
 languages), their equivalences both in other languages and synonyms,
 their related tags (in essence properties of the main descriptive tag,
 hence oneway=... with highway=...), deprecations and so on.


 +1

 It's possible to have anarchy without chaos.

This is almost the exact same discussion as the SteveC should decide
thread on the main talk list with opposite outcomes

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


[OSM-dev] likenesses

2009-09-30 Thread SteveC
I want to revive a very old idea - tag equivalences. It might be  
solving a problem that doesn't exist or someone might have done it and  
I've missed it.

I'm not a socialist moral relativist when it comes to cultural  
comparisons, but forcing the entire world to tag their largest class  
of vehicular infrastructure as highway=motorway isn't super efficient  
either maybe.

It would be nice to allow people to tag things as motorway, freeway,  
autobahn or whatever makes sense. Then, if your renderer or routing  
software knows about them, great. If not, then there should be  
something that tells them what they're roughly like.

So I think step one is to have an XML file which points out these  
equivalences. It will be rough. It won't know that an autobahn has no  
speed limit or a freeway is usually 55mph or a motorway is usually  
70mph. The first step is just a hand wavy... I don't know what a  
autobahn is, but it's roughly like a motorway, ah ok.

Then it will free us up to start to do much more specific country  
rendering and routing.

Later, we can evolve it to be an API or know all sorts of things, but  
I want to put together version 0.1 and have people like Jon Burgess  
and Steve Chilton care about it because of rendering and Frederik and  
Richard care because of editing. I would want it to be required by all  
editors and routers and renderers in future, if it was to be useful.

Therefore, here's my straw man to start it off

!-- this is a straw man and might not even parse as XML. C'est la vie  
--
likenesses version=0.1

   likeness object=way key=highway
 likeness value=motorway /
 likeness value=freeway /
 likeness value=autobahn /
   /likeness

   likeness object=node key=amenity
 likeness value=atm /
 likeness value=bankautomat /
 likeness value=geldautomat /
   /likeness

/likenesses

If you want to hack on this, it's at

http://svn.openstreetmap.org/misc/likenesses/likeness.xml

The point here is that if you're a routing engine and you know about  
motorways you treat autobahns and freeways as roughly the same, or  
identical if you like. If you want to then go on and figure out more  
details, please do! If you're a renderer and you know what an icon for  
amenity=atm is, then you know you can use this for amenity=bakautomat.

The next step is that osm2pgsql uses this to convert things it doesn't  
know about, or the big mapnik xml files do, or whatever. There are  
glaring problems like maybe we don't want people to use highway but  
whatever makes sense for them - that is we want the keys *and* values  
to be mutable. But, let's take step one first.

Thoughts?

Yours c.

Steve

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] likenesses

2009-09-30 Thread John Smith
2009/10/1 SteveC st...@asklater.com:
 Thoughts?

JOSM sort of allows this already, it allows you to load a custom set
of presets and then converts them into typical OSM values. Having more
flexability in the editors makes more sense to me then trying to go
the other way and have the renderer or other software figure out what
was intended. One of the big reasons to have a smaller set of keys is
because mistakes are more likely to be found and fixed, even if you
don't understand the language used to create it, your editor can
convert it into a language you are used to so you can fix it.

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] likenesses

2009-09-30 Thread Eugene Alvin Villar
Inasmuch as the underlying concepts are identical (more or less), I don't
like the idea that we can use different key name or values to represent
those concepts.

Sure anyone can tag oneway/one_way=yes/true/1/si/hai/oui/jå and write out
all the equivalences in a likeness XML file, but this complicates use of the
data for little benefit.

I think of some OSM tags as similar to the keywords of a programming
language. Sure you can translate keywords like print and open into the
native language of the programmer and then do pre-processing of the code or
use a specialized compiler, but what for? (Take note that even programming
languages that were invented by non-native English speakers use English
keywords for consistency. Japan's Ruby comes into mind.) So allowing
amenity=bankautomat as a synonym for amenity=atm even if they represent
identical concepts is not really good.

Push for i18n on the user interfaces, not on the non-name data.


On Thu, Oct 1, 2009 at 10:25 AM, SteveC st...@asklater.com wrote:

 I want to revive a very old idea - tag equivalences. It might be
 solving a problem that doesn't exist or someone might have done it and
 I've missed it.

 I'm not a socialist moral relativist when it comes to cultural
 comparisons, but forcing the entire world to tag their largest class
 of vehicular infrastructure as highway=motorway isn't super efficient
 either maybe.

 It would be nice to allow people to tag things as motorway, freeway,
 autobahn or whatever makes sense. Then, if your renderer or routing
 software knows about them, great. If not, then there should be
 something that tells them what they're roughly like.

 So I think step one is to have an XML file which points out these
 equivalences. It will be rough. It won't know that an autobahn has no
 speed limit or a freeway is usually 55mph or a motorway is usually
 70mph. The first step is just a hand wavy... I don't know what a
 autobahn is, but it's roughly like a motorway, ah ok.

 Then it will free us up to start to do much more specific country
 rendering and routing.

 Later, we can evolve it to be an API or know all sorts of things, but
 I want to put together version 0.1 and have people like Jon Burgess
 and Steve Chilton care about it because of rendering and Frederik and
 Richard care because of editing. I would want it to be required by all
 editors and routers and renderers in future, if it was to be useful.

 Therefore, here's my straw man to start it off

 !-- this is a straw man and might not even parse as XML. C'est la vie
 --
 likenesses version=0.1

   likeness object=way key=highway
 likeness value=motorway /
 likeness value=freeway /
 likeness value=autobahn /
   /likeness

   likeness object=node key=amenity
 likeness value=atm /
 likeness value=bankautomat /
 likeness value=geldautomat /
   /likeness

 /likenesses

 If you want to hack on this, it's at

http://svn.openstreetmap.org/misc/likenesses/likeness.xml

 The point here is that if you're a routing engine and you know about
 motorways you treat autobahns and freeways as roughly the same, or
 identical if you like. If you want to then go on and figure out more
 details, please do! If you're a renderer and you know what an icon for
 amenity=atm is, then you know you can use this for amenity=bakautomat.

 The next step is that osm2pgsql uses this to convert things it doesn't
 know about, or the big mapnik xml files do, or whatever. There are
 glaring problems like maybe we don't want people to use highway but
 whatever makes sense for them - that is we want the keys *and* values
 to be mutable. But, let's take step one first.

 Thoughts?

 Yours c.

 Steve

 ___
 dev mailing list
 dev@openstreetmap.org
 http://lists.openstreetmap.org/listinfo/dev




-- 
http://vaes9.codedgraphic.com
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev