You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2012-08-23 20:20:05

MotorKUH
Member
From: Pfalz
Registered: 2012-06-28
Posts: 140
Website

SOLVED:style-file "lines": help needed @ oneway motorcycle restriction

Hello,
this is my first posting outside the german forum.

I need a little help with the routing in my lines-file (style).

This is the situation: Permalink
The tunnel on the primary-highway B7 has a restriction for all motorcycles from north to south (backward), in case of a railway-line along the lane.
The other direction from south to north (forward) is free for motorcycles. I've no interest for other vehicles, only for motorcycles and mopeds.
It's tagged this: motorcycle:backward=no

How do i have to decode this in my style that routing works correct way?
highway=* & motorcycle:backward=no    {add oneway=yes}
or
highway=* & motorcycle:backward=no   {set motorcycle=no; set moped=no; }

This works, but in both directions. And this is not what i want!
highway=* & motorcycle=no            {set motorcycle=no; set motorcar=no; set moped=no; }

Thank you. Best Regards.
Scotti

Update: Correct Permalink

Last edited by MotorKUH (2012-08-24 18:40:25)

Offline

#2 2012-08-24 09:09:06

MotorKUH
Member
From: Pfalz
Registered: 2012-06-28
Posts: 140
Website

Re: SOLVED:style-file "lines": help needed @ oneway motorcycle restriction

Good morning,
yesterday i tried something more with my Garmin zûmo550.

In Case of Vehicle-Profile Motorcar/Motorcycle is not seperated in the Unit, i set Motorcar also to "no"-Value.

motorcycle:backward=no | motorcycle:forward=no 		{set motorcycle:oneway=yes; }
highway=* & motorcycle=no & motorcycle:oneway!=yes	{set motorcycle=no; set motorcar=no; set moped=no; }
motorcycle:backward=no					{add oneway=yes; set motorcycle:forward=yes; }
motorcycle:forward=no					{add oneway=-1; set motorcycle:backward=yes; }

This Code works correct with Vehicle-Profile Truck, Bus, Emergency,
but not with Car/Motorcyle.

I guess, this is why i set:

highway=* & motorcycle=no & motorcycle:oneway!=yes	{set motorcycle=no; set motorcar=no; set moped=no; }

But this Line i need for Motorcycle-Restrictions in both Directions!

Please help me to change my Code, so it will work with both, forbidden in oneway and totally forbidden.

Thank you very much and have a great Day.
Scotti

Offline

#3 2012-08-24 17:39:41

MotorKUH
Member
From: Pfalz
Registered: 2012-06-28
Posts: 140
Website

Re: SOLVED:style-file "lines": help needed @ oneway motorcycle restriction

Hello,
i've found it out by myself with a long period of try & error.

This works:

motorcycle:backward=no				{add oneway=yes; }
motorcycle:forward=no				{add oneway=-1; }
motorcycle=no					{delete motorcycle; set motorcycle:backward=no; set motorcycle:forward=no; }
motorcycle:backward=no & motorcycle:forward=no	{set motorcycle=no; set motorcar=no; set moped=no; }

Nice Weekend.
Scotti

Offline

#4 2012-08-24 19:01:13

chris66
Member
From: Germany
Registered: 2009-05-24
Posts: 10,128

Re: SOLVED:style-file "lines": help needed @ oneway motorcycle restriction

MotorKUH wrote:

How do i have to decode this in my style that routing works correct way?
highway=* & motorcycle:backward=no    {add oneway=yes}

I think
highway=* & motorcycle:backward=no {set oneway=yes}
highway=* & motorcycle:forward=no {set oneway=-1}
should work.

Chris


Mapper aus dem Münsterland.

Offline

#5 2012-08-24 23:42:08

MotorKUH
Member
From: Pfalz
Registered: 2012-06-28
Posts: 140
Website

Re: SOLVED:style-file "lines": help needed @ oneway motorcycle restriction

Why should i change this from "add" to "set"? It works with "add"! Never change a running thing. Regards. Scotti

Offline

#6 2012-08-25 12:45:25

ligfietser
Member
Registered: 2008-10-09
Posts: 5,353
Website

Re: SOLVED:style-file "lines": help needed @ oneway motorcycle restriction

I dont understand this complicated action:

motorcycle=no {delete motorcycle; set motorcycle:backward=no; set motorcycle:forward=no; }
motorcycle:backward=no & motorcycle:forward=no    {set motorcycle=no; set motorcar=no; set moped=no; }

that is the same as this action:

motorcycle=no {set motorcar=no; set moped=no; } hmm

Offline

#7 2012-08-25 14:50:22

MotorKUH
Member
From: Pfalz
Registered: 2012-06-28
Posts: 140
Website

Re: SOLVED:style-file "lines": help needed @ oneway motorcycle restriction

ligfietser wrote:

I dont understand this complicated action:

motorcycle=no {delete motorcycle; set motorcycle:backward=no; set motorcycle:forward=no; }
motorcycle:backward=no & motorcycle:forward=no    {set motorcycle=no; set motorcar=no; set moped=no; }

that is the same as this action:

motorcycle=no {set motorcar=no; set moped=no; } hmm

Hi
As I understood, your Code is only for both Directions = no.
But i need a Code which works oneway backward, forward and both.
And my Code works! Maybe it's going better. But now i don't needed better Code yet.
Nice Weekend. Regards. Scotti

Offline

Board footer

Powered by FluxBB