Re: [Tagging] Reviving the conditions debate: first summary

2012-06-21 Thread Martin Vonwald
Has this discussion died now and awaits re-revival in another two, three years? ;-) Martin 2012/6/15 Eckhart Wörner ewoer...@kde.org: Hi everybody, let me try to summarize some parts of the discussion up to now. Hopefully this won't become too biased: * most people agreed that the syntax

Re: [Tagging] Reviving the conditions debate

2012-06-17 Thread martinq
Colin, Martin, if it walks like a duck and quacks like a duck, then it had better be a duck... What I mean with this, is if the grammar is so English-like such that people are tempted to use constructions which are not (or not quite) supported by the grammar, or if the way it works is contrary

Re: [Tagging] Reviving the conditions debate

2012-06-17 Thread martinq
motor_vehicle:forward:(Mo-Fr 16:00-18:00) = agricultural goods:forward:(Mo-Fr 16:00-18:00) = yes motor_vehicle:backward:(Mo-Fr 16:00-18:00) = agricultural goods:backward:(Mo-Fr 06:00-09:00) = yes This is the point where I think it would be worth to start prefixing the expression by access (I

Re: [Tagging] Reviving the conditions debate: first summary

2012-06-17 Thread martinq
* some people argued that conditions syntax should look similar to human language, however, other people argued that this would trick mappers into thinking that human language can be used without paying attention to syntax, and others pointed out that that a parser that has to be liberal about

Re: [Tagging] Reviving the conditions debate

2012-06-15 Thread Colin Smale
Hi Eckhart, On 15/06/2012 01:08, Eckhart Wörner wrote: Hi Colin, Am Freitag, 15. Juni 2012, 00:24:18 schrieb Colin Smale: If I were king I would be looking for a system that: * makes common cases easy Extended conditions: ☑ * makes complex cases possible Extended conditions: ☑ * makes

Re: [Tagging] Reviving the conditions debate

2012-06-15 Thread Ilari Kajaste
On 2012-06-15 09:07, Colin Smale wrote: The bulk of the discussion up to now has been about access type tags, producing a boolean value: can I or can't I use this road under the given conditions. Why limit it to boolean? Why not address the use case of what is the maximum speed for vehicle X

Re: [Tagging] Reviving the conditions debate

2012-06-15 Thread ThomasB
as the one who drafted Extended conditions I would like to make some comments. The proposal should not compete with Access restriction 1.5 (or similar proposals). My proposal aims to consolidate and unify existing tags instead of proposing a complete new way of tagging -see the one example at the

Re: [Tagging] Reviving the conditions debate

2012-06-15 Thread Eckhart Wörner
Hi Pieren, Am Donnerstag, 14. Juni 2012, 12:10:49 schrieb Pieren: condition1=wet maxspeed:lgv=120 or 80 in condition1 I read this as if condition1 applies, the maxspeed is 120 or 80 - I'm pretty sure this is not what you wanted to express. If we consider that a special parser is required as

Re: [Tagging] Reviving the conditions debate

2012-06-15 Thread Eckhart Wörner
Hi Peter, Am Donnerstag, 14. Juni 2012, 13:10:44 schrieb Peter Wendorff: A key access:weight is okay IMHO and can contain weight-related access restrictions. access:length, access:time and so on - okay. but the specific weight a restriction belongs to should be part of the value, not the

Re: [Tagging] Reviving the conditions debate

2012-06-15 Thread Eckhart Wörner
Hi Thomas, Am Freitag, 15. Juni 2012, 02:03:31 schrieb ThomasB: as the one who drafted Extended conditions I would like to make some comments. The proposal should not compete with Access restriction 1.5 (or similar proposals). My proposal aims to consolidate and unify existing tags instead of

[Tagging] Reviving the conditions debate: first summary

2012-06-15 Thread Eckhart Wörner
Hi everybody, let me try to summarize some parts of the discussion up to now. Hopefully this won't become too biased: * most people agreed that the syntax of the competing Access Restrictions 1.5 proposal is quite complicated * some people argued that it is important to separate syntax for

Re: [Tagging] Reviving the conditions debate

2012-06-15 Thread Ilari Kajaste
(Sorry for a possible double-post, this message I sent earlier today (7:52:26 UTC) hasn't yet appeared for some reason.) On 2012-06-15 09:07, Colin Smale wrote: The bulk of the discussion up to now has been about access type tags, producing a boolean value: can I or can't I use this road under

Re: [Tagging] Reviving the conditions debate: first summary

2012-06-15 Thread Martin Vonwald (Imagic)
+1 to the summary and especially to: Am 15.06.2012 um 16:41 schrieb Eckhart Wörner ewoer...@kde.org: I would also like to ask people not to blindly start new proposals, because otherwise we'll inevitably end up with hundreds of proposals and no conclusion at all. I would even prefer to have

Re: [Tagging] Reviving the conditions debate

2012-06-15 Thread Martin Koppenhoefer
2012/6/15 Eckhart Wörner ewoer...@kde.org: What would your parser do to existing tagging like name = Ministere a la condition femininne - decide that femininne is an unknown condition and therefore name = Ministere a la does not apply? well, it would probably not parse names at all, so

Re: [Tagging] Reviving the conditions debate

2012-06-15 Thread Eckhart Wörner
Hi Martin, Am Freitag, 15. Juni 2012, 20:35:39 schrieb Martin Koppenhoefer: 2012/6/15 Eckhart Wörner ewoer...@kde.org: What would your parser do to existing tagging like name = Ministere a la condition femininne - decide that femininne is an unknown condition and therefore name =

Re: [Tagging] Reviving the conditions debate

2012-06-15 Thread Peter Wendorff
Am 15.06.2012 00:51, schrieb Eckhart Wörner: Hi martinq, Am Donnerstag, 14. Juni 2012, 22:19:06 schrieb martinq: and many other variants. It is almost impossible to tag it wrong. I'm sorry, but every time I've heard a statement similar to you cannot get it wrong it just boiled down to the

Re: [Tagging] Reviving the conditions debate

2012-06-15 Thread Peter Wendorff
Am 15.06.2012 16:29, schrieb Eckhart Wörner: Hi Peter, Am Donnerstag, 14. Juni 2012, 13:10:44 schrieb Peter Wendorff: A key access:weight is okay IMHO and can contain weight-related access restrictions. access:length, access:time and so on - okay. but the specific weight a restriction belongs

Re: [Tagging] Reviving the conditions debate

2012-06-15 Thread Tobias Knerr
On 15.06.2012 23:38, Peter Wendorff wrote: To conclude: I really don't see any benefit in creating variable keys over creating fixed keys with a variable, slightly more complex (compared to the already complex one) value scheme. There's one immediate problem: The 255 character limit for

Re: [Tagging] Reviving the conditions debate

2012-06-14 Thread Colin Smale
Tobias, thanks for your constructive response. On 14/06/2012 03:22, Tobias Knerr wrote: On 13.06.2012 23:48, Colin Smale wrote: Taking the access discussion to a higher level of abstraction, and without abandoning the key-value pair paradigm, I believe we are looking for a way of giving a tag

Re: [Tagging] Reviving the conditions debate

2012-06-14 Thread Martin Vonwald
Hi! Maybe someone can help me defining the following access restriction using the 1.5 proposal: http://wiki.openstreetmap.org/wiki/File:Length_and_time_restriction_2.jpg Right now I'm pretty lost. :-( Martin ___ Tagging mailing list

Re: [Tagging] Reviving the conditions debate

2012-06-14 Thread Martin Vonwald
I think I found a solution using a self-defined rule: access:motor_vehicle!rule.time=10:00-18:00 access:motor_vehicle!rule.width=5+ access:motor_vehicle?rule=no Can this be simplified somehow (using the 1.5 proposal)? 2012/6/14 Martin Vonwald imagic@gmail.com: Hi! Maybe someone can

Re: [Tagging] Reviving the conditions debate

2012-06-14 Thread Flaimo
2012 08:38:52 +0200 From: Colin Smale colin.sm...@xs4all.nl To: tagging@openstreetmap.org Subject: Re: [Tagging] Reviving the conditions debate Message-ID: 4fd986fc.5070...@xs4all.nl Content-Type: text/plain; charset=ISO-8859-1; format=flowed Here's a test case. No motor vehicles mon-fri

Re: [Tagging] Reviving the conditions debate

2012-06-14 Thread Martin Vonwald
: [Tagging] Reviving the conditions debate Message-ID: 4fd986fc.5070...@xs4all.nl Content-Type: text/plain; charset=ISO-8859-1; format=flowed Here's a test case. No motor vehicles mon-fri between 1600-1800 except agricultural vehicles and good vehicles *in this direction*. Going the other way

Re: [Tagging] Reviving the conditions debate

2012-06-14 Thread Pieren
On Thu, Jun 14, 2012 at 8:38 AM, Colin Smale colin.sm...@xs4all.nl wrote: Back to my idea to move all 'variables' to the value : Let say we create a new access keyword : condition (or access_condition, cond, expr or whatever_you_like) suffixed by a number, eg. condition1, condition2, etc

Re: [Tagging] Reviving the conditions debate

2012-06-14 Thread Martin Vonwald
Yes, short and readable (IMO), but how would you express a conditional maxspeed? I suggested something similar some time ago, but people didnt seem to be very happy with it. It was something like: condition:name=expression anykey:conditional(name)=value The obvious drawback is, that you always

Re: [Tagging] Reviving the conditions debate

2012-06-14 Thread Martin Vonwald
I created a (still very small) table showing some examples for both proposals: http://wiki.openstreetmap.org/wiki/User:Imagic/Werkstatt2 If you have any signposts or can provide a currently missing solution please feel free to update this page or send me the link to the signpost/a description and

Re: [Tagging] Reviving the conditions debate

2012-06-14 Thread Pieren
On Thu, Jun 14, 2012 at 11:44 AM, Martin Vonwald imagic@gmail.com wrote: Yes, short and readable (IMO), but how would you express a conditional maxspeed? You mean: access:lgv.speed=120 access:lgv?wet.speed=80 condition1=wet maxspeed:lgv=120 or 80 in condition1 If we consider that a

Re: [Tagging] Reviving the conditions debate

2012-06-14 Thread Colin Smale
On 14/06/2012 11:19, Pieren wrote: On Thu, Jun 14, 2012 at 8:38 AM, Colin Smale colin.sm...@xs4all.nl wrote: Back to my idea to move all 'variables' to the value : Let say we create a new access keyword : condition (or access_condition, cond, expr or whatever_you_like) suffixed by a number, eg.

Re: [Tagging] Reviving the conditions debate

2012-06-14 Thread Flaimo
Message: 2 Date: Thu, 14 Jun 2012 10:31:17 +0200 From: Martin Vonwald imagic@gmail.com To: Tag discussion, strategy and related tools        tagging@openstreetmap.org Subject: Re: [Tagging] Reviving the conditions debate Message-ID

Re: [Tagging] Reviving the conditions debate

2012-06-14 Thread Martin Vonwald
2012/6/14 Flaimo fla...@gmail.com: Maybe someone can help me defining the following access restriction using the 1.5 proposal: http://wiki.openstreetmap.org/wiki/File:Length_and_time_restriction_2.jpg alternate version: access:motorized.time=Mo-Su 00:00-10:00,18:00-24:00

Re: [Tagging] Reviving the conditions debate

2012-06-14 Thread Tobias Knerr
On 14.06.2012 08:38, Colin Smale wrote: My concern with this is that it may become unwieldy and cumbersome with anything beyond fairly trivial cases such as your maxspeed example. For me, the goal is to make the common cases *easy*, and the rare complex cases *possible*. For the human

Re: [Tagging] Reviving the conditions debate

2012-06-14 Thread Peter Wendorff
Hi. I'm a little bit afraid about the discussion here and would like to point out that a key IMHO should be different than a value. I like the idea of namespaces for keys, to be able to group tags that belong together, but I think, even namespaced stuff should belong keylike. A key

Re: [Tagging] Reviving the conditions debate

2012-06-14 Thread Colin Smale
On 14/06/2012 12:53, Flaimo wrote: this notation has the same flaw as the current access scheme. it mixes transportation modes and user roles. motor_vehicle is a transportation mode. agricultural is a user role. not everywhere on this planet agricultural automatically means motor_vehicle. that

Re: [Tagging] Reviving the conditions debate

2012-06-14 Thread Ilari Kajaste
Hi fellow mappers! Disclaimer: I'm a relative newbie to OSM, so feel free to take my opinions as such. (I'm not a newbie to usability, data structure definitions or programming though.) On Wed, 13 Jun 2012, Colin Smale wrote: Whatever syntax is used, the *primary* requirement is that it is

Re: [Tagging] Reviving the conditions debate

2012-06-14 Thread Colin Smale
On 14/06/2012 13:00, Tobias Knerr wrote: On 14.06.2012 08:38, Colin Smale wrote: My concern with this is that it may become unwieldy and cumbersome with anything beyond fairly trivial cases such as your maxspeed example. For me, the goal is to make the common cases *easy*, and the rare complex

Re: [Tagging] Reviving the conditions debate

2012-06-14 Thread Tobias Knerr
On 14.06.2012 13:30, Colin Smale wrote: motor_vehicle:forward:(Mo-Fr 16:00-18:00) = agricultural At first glance this looks like a motor vehicle going forward between those times is considered agricultural. It doesn't feel very intuitive, based on the established key=value paradigm. Putting a

Re: [Tagging] Reviving the conditions debate

2012-06-14 Thread Martin Koppenhoefer
2012/6/14 Colin Smale colin.sm...@xs4all.nl: each jurisdiction. I don't expect there to be total agreement about agricultural either. There are signs for no agricultural vehicles, which in my experience refer to the type of vehicle and not what it is being used for at that moment. But this

Re: [Tagging] Reviving the conditions debate

2012-06-14 Thread Philip Barnes
The other usage of the term agricultural is the type of vehicle. In the UK agricultural vehicles are prohibited on motorways due to their slow speeds. But a farmer could use his Land Rover on a motorway as it is a car being used for agriculture. Phil -- Sent from my Nokia N9 On 14/06/2012

Re: [Tagging] Reviving the conditions debate

2012-06-14 Thread Colin Smale
Martin, if it walks like a duck and quacks like a duck, then it had better be a duck... What I mean with this, is if the grammar is so English-like such that people are tempted to use constructions which are not (or not quite) supported by the grammar, or if the way it works is contrary to how

Re: [Tagging] Reviving the conditions debate

2012-06-14 Thread Eckhart Wörner
Hi martinq, Am Donnerstag, 14. Juni 2012, 22:19:06 schrieb martinq: and many other variants. It is almost impossible to tag it wrong. I'm sorry, but every time I've heard a statement similar to you cannot get it wrong it just boiled down to the computer cannot tell you that it's wrong. This

Re: [Tagging] Reviving the conditions debate

2012-06-14 Thread Eckhart Wörner
Hi Colin, Am Freitag, 15. Juni 2012, 00:24:18 schrieb Colin Smale: If I were king I would be looking for a system that: * makes common cases easy Extended conditions: ☑ * makes complex cases possible Extended conditions: ☑ * makes each rule as standalone as possible (one sign - one rule)

[Tagging] Reviving the conditions debate

2012-06-13 Thread Eckhart Wörner
Hi everybody, I want to revive the discussion on how to tag restrictions that depend on certain conditions. My idea is to finalize the proposal described in http://wiki.openstreetmap.org/wiki/Proposed_features/Extended_conditions_for_access_tags and finally accept it. The reasons for picking

Re: [Tagging] Reviving the conditions debate

2012-06-13 Thread aighes
Am 13.06.2012 14:35, schrieb Eckhart Wörner: Hi everybody, I want to revive the discussion on how to tag restrictions that depend on certain conditions. My idea is to finalize the proposal described in http://wiki.openstreetmap.org/wiki/Proposed_features/Extended_conditions_for_access_tags

Re: [Tagging] Reviving the conditions debate

2012-06-13 Thread Martin Vonwald
2012/6/13 Eckhart Wörner ewoer...@kde.org: Competing proposals: * http://wiki.openstreetmap.org/wiki/Proposed_features/access_restrictions_1.5 - in my opinion a horrible and incomprehensible syntax with arbitrary distinctions, taginfo revealed almost no uses (for example,

Re: [Tagging] Reviving the conditions debate

2012-06-13 Thread Tobias Knerr
On 13.06.2012 15:07, Martin Vonwald wrote: 2012/6/13 Eckhart Wörner ewoer...@kde.org: Competing proposals: * http://wiki.openstreetmap.org/wiki/Proposed_features/access_restrictions_1.5 - in my opinion a horrible and incomprehensible syntax with arbitrary distinctions, taginfo revealed

Re: [Tagging] Reviving the conditions debate

2012-06-13 Thread David Earl
On 13/06/2012 14:36, David Earl wrote: http://www.frankieandshadow.com/xref/byway.jpg BTW, this means I can use this road at all times as a cyclist, even when the barrier is locked shut, whatever the other restrictions on motor vehicles are. ___

Re: [Tagging] Reviving the conditions debate

2012-06-13 Thread Martin Vonwald
2012/6/13 Tobias Knerr o...@tobias-knerr.de: Can you give a concrete example where it is actually more powerful? For example the self-defined conditions. Not elegant in my opinion, improvable, but quite nice! Something that can be expressed with restrictions 1.5, but not with the extended

Re: [Tagging] Reviving the conditions debate

2012-06-13 Thread Eckhart Wörner
Hi David, Am Mittwoch, 13. Juni 2012, 14:47:09 schrieb aighes: I think your example: access:weight5.5 = destination should be changed into something like maxweight:destination=*. This seems to be more logical and equal to your other examples. First, I did not write the proposal, someone

Re: [Tagging] Reviving the conditions debate

2012-06-13 Thread Martin Vonwald
2012/6/13 Eckhart Wörner ewoer...@kde.org: *snip* access:(weight5.5):destination=yes *snip* This is a good example of a bad choice of separators. Because (weight5.5) and destination are both conditions, but if I don't know that they are conditions, I have no chance of figuring it out. If you use

Re: [Tagging] Reviving the conditions debate

2012-06-13 Thread aighes
Am 13.06.2012 16:12, schrieb Martin Vonwald: 2012/6/13 Eckhart Wörnerewoer...@kde.org: *snip* access:(weight5.5):destination=yes *snip* This is a good example of a bad choice of separators. Because (weight5.5) and destination are both conditions, but if I don't know that they are conditions,

Re: [Tagging] Reviving the conditions debate

2012-06-13 Thread Martin Koppenhoefer
2012/6/13 aighes o...@aighes.de: I think maxweight is an already used basekey and maximum weight is also a part of access. So it should be used like maxspeed, maxheight etc. +1 instead of access:(weight5.5)=no the established tagging is maxweight=5.5 or maxweight=5.5t cheers, Martin

Re: [Tagging] Reviving the conditions debate

2012-06-13 Thread Eckhart Wörner
Hi Martin, Am Mittwoch, 13. Juni 2012, 15:47:12 schrieb Martin Vonwald: For example the self-defined conditions. Not elegant in my opinion, improvable, but quite nice! The only advantage of self-defined conditions is that you can remove some redundancy when two tags contain the same subset of

Re: [Tagging] Reviving the conditions debate

2012-06-13 Thread Martin Vonwald
2012/6/13 aighes o...@aighes.de: For me the system is clear. basekey:condition_1:condition_2:...:condition_n=value. How about this: http://wiki.openstreetmap.org/wiki/Key:parking:lane The basekey is parking:lane. How do you know that lane is not a condition? I think maxweight is an already

Re: [Tagging] Reviving the conditions debate

2012-06-13 Thread aighes
Am 13.06.2012 16:30, schrieb Martin Vonwald: 2012/6/13 aigheso...@aighes.de: For me the system is clear. basekey:condition_1:condition_2:...:condition_n=value. How about this: http://wiki.openstreetmap.org/wiki/Key:parking:lane The basekey is parking:lane. How do you know that lane is not a

Re: [Tagging] Reviving the conditions debate

2012-06-13 Thread Martin Vonwald
2012/6/13 aighes o...@aighes.de: Am 13.06.2012 16:30, schrieb Martin Vonwald: 2012/6/13 aigheso...@aighes.de: For me the system is clear. basekey:condition_1:condition_2:...:condition_n=value. How about this: http://wiki.openstreetmap.org/wiki/Key:parking:lane The basekey is

Re: [Tagging] Reviving the conditions debate

2012-06-13 Thread Martin Vonwald
2012/6/13 Tobias Knerr o...@tobias-knerr.de: On 13.06.2012 16:12, Martin Vonwald wrote: If you use a different character (like the ? in the 1.5) it would be clear where the conditions start. That's a valid argument, but we need to be aware that there is already a lot of existing tagging that

Re: [Tagging] Reviving the conditions debate

2012-06-13 Thread Eckhart Wörner
Hi Tobias, Am Mittwoch, 13. Juni 2012, 17:05:34 schrieb Tobias Knerr: For example, if there is only one lane that changes maxspeed when wet, one might want to write that as follows: maxspeed:lanes = 80|80|80 maxspeed:lanes?wet = ||50 I would go even further and mandate that

Re: [Tagging] Reviving the conditions debate

2012-06-13 Thread Martin Koppenhoefer
2012/6/13 Martin Vonwald imagic@gmail.com: The problem is that you don't have a clear separation between key and condition. In my opinion it would improve readability for people (not programs) if we separate those two clearly. I tend to agree with Tobias here: it is not always clear

Re: [Tagging] Reviving the conditions debate

2012-06-13 Thread aighes
Am 13.06.2012 17:07, schrieb Martin Vonwald: 2012/6/13 aigheso...@aighes.de: Am 13.06.2012 16:30, schrieb Martin Vonwald: 2012/6/13 aigheso...@aighes.de: For me the system is clear. basekey:condition_1:condition_2:...:condition_n=value. How about this:

Re: [Tagging] Reviving the conditions debate

2012-06-13 Thread Martin Vonwald
2012/6/13 aighes o...@aighes.de: Ok human readability is a good point. But works only til we have a key like foo?bar=* ;-) I use this key now for a year or so for various data. I'm writing an article about it in the next days ;-) Also a :: would be possible. Possible: yes. Better? Think

Re: [Tagging] Reviving the conditions debate

2012-06-13 Thread Tobias Knerr
On 13.06.2012 17:18, Martin Vonwald wrote: :forward, :backward, ... I don't think of them as conditions, but more a selection of a part of a way. Just like :lanes is to me not a condition. I think we've discussed this several times already, and as you know I do not think this part of a way

Re: [Tagging] Reviving the conditions debate

2012-06-13 Thread Colin Smale
For some reason everyone seems determined to come up with the most complex system imaginable, instead of taking successful ideas from the rest of the world. This trait is what causes many projects to fail. Let's not look at this as simply a discussion about access tags, but an opportunity to

Re: [Tagging] Reviving the conditions debate

2012-06-13 Thread Martin Vonwald
Am 13.06.2012 um 17:45 schrieb Tobias Knerr o...@tobias-knerr.de: This means I didn't explain well enough. Let's update the example to make this more clear: maxspeed=80 maxspeed:lanes = 60|80|80 maxspeed:lanes?wet = ||50 First step: Evaluate the conditions without regard for the

Re: [Tagging] Reviving the conditions debate

2012-06-13 Thread Martin Vonwald
Am 13.06.2012 um 18:11 schrieb Colin Smale colin.sm...@xs4all.nl: For some reason everyone seems determined to come up with the most complex system imaginable, That's simply because everyone has a solution that is better than all other solutions ;-) Let's not look at this as simply a

Re: [Tagging] Reviving the conditions debate

2012-06-13 Thread Colin Smale
On 13/06/2012 18:23, Eckhart Wörner wrote: Hi Colin, Am Mittwoch, 13. Juni 2012, 18:11:53 schrieb Colin Smale: For some reason everyone seems determined to come up with the most complex system imaginable, instead of taking successful ideas from the rest of the world. This trait is what causes

Re: [Tagging] Reviving the conditions debate

2012-06-13 Thread Tobias Knerr
On 13.06.2012 23:48, Colin Smale wrote: Taking the access discussion to a higher level of abstraction, and without abandoning the key-value pair paradigm, I believe we are looking for a way of giving a tag a value which depends on all kinds of variables. *IMHO* we need a way of making