Re: [mkgmap-dev] [PATCH] Routable pedestrian areas

2010-05-20 Thread Martin Simon
2010/4/13 Chris66 :
>
> Works for me using mkgmap latest.
>
> lines:
>
> highway=pedestrian & area!=yes {add motorcar=no; add bicycle=no} [0x0a
> road_class=0 road_speed=0 resolution 22]
>
> highway=pedestrian & area=yes   [0x0a road_class=0 road_speed=0
> resolution 22 continue]
>
> (I'm unsure if the action-rules have to be added here and if to use
> the "with_actions").
>
>
> polygons:
>
> highway=pedestrian & area=yes [0x12 resolution 22]

Hi!

Sorry for bringing this thread up again - i'm trying to reduce the
mkgmap runs needed to build my map (containing many elements i want to
represent as areas *and* ways) by combining two layers i kept seperate
in the past.

Using the continue statement is not a problem in most cases, but whe i
already have multiple definitions for one element in my lines-file,
eg:

highway=residential & maxspeed<41 [0x06 road_class=1 road_speed=2 resolution 20]
highway=residential [0x06 road_class=1 road_speed=3 resolution 20]

and in my polygons-file:

highway=* & area=yes [0x05 resolution 20]

If I use the continue-statement on both definitions in the lines-file,
every residential road will be duplicated - if I don't, no polygon
will be created.

Could it be possible to introduce a new "continue-to-next-file"
statement that causes mkgmap to jump right to the next definition file
(relations to lines, lines to polygons...) if a definition is matched?

This way we could keep the traditional ordered definitions *and*
create multiple object types per OSM object...

Thanks for listening,

Martin
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] [PATCH] Routable pedestrian areas

2010-04-13 Thread Chris66
Am 08.04.2010 21:39, schrieb Marko Mäkelä:

> Back on topic, I would appreciate it if someone could test if mkgmap can now 
> translate the same OSM way both to a polygon and to a line. This would allow 
> the feature to be implemented in the style definition. 

Works for me using mkgmap latest.

lines:

highway=pedestrian & area!=yes {add motorcar=no; add bicycle=no} [0x0a
road_class=0 road_speed=0 resolution 22]

highway=pedestrian & area=yes   [0x0a road_class=0 road_speed=0
resolution 22 continue]

(I'm unsure if the action-rules have to be added here and if to use
the "with_actions").


polygons:

highway=pedestrian & area=yes [0x12 resolution 22]

Chris

___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] [PATCH] Routable pedestrian areas

2010-04-08 Thread Marko Mäkelä
On Thu, Apr 08, 2010 at 07:47:55PM +0100, Dave F. wrote:
>> BTW Minko, please check you e-mail client. Your not properly replying
>> but writing new topics. This is a pain in the ass.
>>
>His posts are displaying correctly inline for me in Thunderbird. Are you
>sure the problem's not at your end?

The problem is incorrect In-Reply-To header. If it does not refer to the 
Message-ID of the message that is being replied to, the thread view of messages 
will be broken.

Back on topic, I would appreciate it if someone could test if mkgmap can now 
translate the same OSM way both to a polygon and to a line. This would allow 
the feature to be implemented in the style definition. That would result in 
less code (easier to read and maintain) than doing it in Java. Besides, someone 
might want to generate perimeter highway=service for parking=surface. That 
would be easier by adapting the style file than by tweaking the core.

Marko
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] [PATCH] Routable pedestrian areas

2010-04-08 Thread Dave F.
Felix Hartmann wrote:
> Well I think routing over areas sucks, and I would not support it. There
> should be clear distinction between ares and highways as lines for 
> routing. If people want to have areas instead of lines, they simply 
> should think up another tag, but not use highway.
> If you have on your way say 10 places where it should route over, it 
> will start to fall into pieces, as it is too complicated for the 
> algorythms to route over areas - even if only alongside the borders.
>   

Then this is a failure of the router & not the tagging.

In the same way as renderings, don't tag for the routers.

Although I'm no expert on this subject, isn't it a similar situation to 
how a router would deal with a roundabout with multiple exits with the 
perimeter of the area being the roundabout? Please correct me if I'm wrong.

> BTW Minko, please check you e-mail client. Your not properly replying 
> but writing new topics. This is a pain in the ass.
>   
His posts are displaying correctly inline for me in Thunderbird. Are you 
sure the problem's not at your end?

Cheers
Dave F.


___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] [PATCH] Routable pedestrian areas

2010-04-08 Thread Chris Miller
Have you considered using a news reader? This mailing list is also available 
as an NNTP feed via news.gmane.org. I personally find NNTP far more convenient 
than email anyway for this sort of thing.

> Felix,
> -routing over areas works for me.
> -about my e-mail client:
> I read this list from the web at
> http://www.mail-archive.com/mkgmap-dev@lists.mkgmap.org.uk/maillist.ht
> ml
> 
> I'm not subscribed to individual messages because of the high volume.
> 
> I can't find a button to reply directly to the list.
> 
> There is a reply button but it only sends the reply to the person who
> posted the message,
> 
> and if I click on it, it doesnt go to my web email.
> 
> So I have to copy and paste the message everytime to my web-email and
> this sucks.
> 
> I can't figure out to do it on another way, sorry
> 



___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] [PATCH] Routable pedestrian areas

2010-04-08 Thread Clinton Gladstone
On Thu, Apr 8, 2010 at 10:07 AM, Felix Hartmann
 wrote:

> Well I think routing over areas sucks, and I would not support it. There
> should be clear distinction between ares and highways as lines for
> routing.

This is true in general, but only an exception for pedestrian squares.
The wiki clearly states that pedestrian highways can also be tagged as
areas:

http://wiki.openstreetmap.org/wiki/Pedestrian

As such, there are now a very large number of pedestrian squares
tagged in this way. If they are not made routable, this can really
hinder foot (and potentially bicycle) navigation in large cities.

Cheers.
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] [PATCH] Routable pedestrian areas

2010-04-08 Thread Clinton Gladstone
On Thu, Apr 8, 2010 at 10:00 AM, Minko  wrote:
> Well, I compiled the map with version 1620,
> and on my map the outlines of those pedestrian areas are rendered as footway,
> and are routable (dotted lines). The polygon is rendered grey.

I'll check this out. It could be that the most recent changes have
made this patch completely unnecessary, which is fine with me: I also
agree that it is better to have such things cleanly handled in the
style files.

Cheers.
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] [PATCH] Routable pedestrian areas

2010-04-08 Thread Minko
Felix,
-routing over areas works for me.
-about my e-mail client:

I read this list from the web at 
http://www.mail-archive.com/mkgmap-dev@lists.mkgmap.org.uk/maillist.html
I'm not subscribed to individual messages because of the high volume.
I can't find a button to reply directly to the list.
There is a reply button but it only sends the reply to the person who posted 
the message,
and if I click on it, it doesnt go to my web email.
So I have to copy and paste the message everytime to my web-email and this 
sucks.
I can't figure out to do it on another way, sorry
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] [PATCH] Routable pedestrian areas

2010-04-08 Thread Felix Hartmann


On 08.04.2010 10:00, Minko wrote:
> Well, I compiled the map with version 1620,
> and on my map the outlines of those pedestrian areas are rendered as footway,
> and are routable (dotted lines). The polygon is rendered grey.
>
> See a screenshot of my map at http://img249.imageshack.us/img249/993/dam.jpg
> The osm data of this square: http://www.openstreetmap.org/browse/way/34132635
>
> IF those are connected to other roads, you can make a good routing already 
> without a patch.
> In my style file the continue statement makes sure the pedestrian roads are 
> rendered (as footway) as well as the area.
>
>
> Minko
>
Well I think routing over areas sucks, and I would not support it. There 
should be clear distinction between ares and highways as lines for 
routing. If people want to have areas instead of lines, they simply 
should think up another tag, but not use highway.
If you have on your way say 10 places where it should route over, it 
will start to fall into pieces, as it is too complicated for the 
algorythms to route over areas - even if only alongside the borders.

BTW Minko, please check you e-mail client. Your not properly replying 
but writing new topics. This is a pain in the ass.
>
>
> Marko Mäkelä wrote
> An educated guess: you cannot translate the same way to both a polygon (area)
> and a line, or can you now that the style branch has been merged to trunk?
>
> I would prefer to see this in the style file.  The fewer hard-coded tweaks in
> the mkgmap core, the better.  Is there now a way to implement the
> oneway-cycleway duplication in the style file?  If there is, could the current
> code be removed from the core?
> ___
> mkgmap-dev mailing list
> mkgmap-dev@lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Re: [mkgmap-dev] [PATCH] Routable pedestrian areas

2010-04-08 Thread Minko
Well, I compiled the map with version 1620,
and on my map the outlines of those pedestrian areas are rendered as footway,
and are routable (dotted lines). The polygon is rendered grey.

See a screenshot of my map at http://img249.imageshack.us/img249/993/dam.jpg
The osm data of this square: http://www.openstreetmap.org/browse/way/34132635

IF those are connected to other roads, you can make a good routing already 
without a patch.
In my style file the continue statement makes sure the pedestrian roads are 
rendered (as footway) as well as the area.


Minko



Marko Mäkelä wrote
An educated guess: you cannot translate the same way to both a polygon (area) 
and a line, or can you now that the style branch has been merged to trunk?

I would prefer to see this in the style file.  The fewer hard-coded tweaks in 
the mkgmap core, the better.  Is there now a way to implement the 
oneway-cycleway duplication in the style file?  If there is, could the current 
code be removed from the core?
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Re: [mkgmap-dev] [PATCH] Routable pedestrian areas

2010-04-08 Thread Felix Hartmann


On 08.04.2010 07:28, Marko Mäkelä wrote:
> On Wed, Apr 07, 2010 at 11:35:52PM +0200, Minko wrote:
>
>> On my "Openfietsmap" a routable cyclemap of the Benelux, I use in the style 
>> file
>>
>> highway=pedestrian&  area=yes [0x08 road_class=0 road_speed=0 resolution 22 
>> continue]
>>
>> It routes via the borders of pedestrian areas for pedestrians, so whats the
>> difference with this patch?
>>  
> An educated guess: you cannot translate the same way to both a polygon (area)
> and a line, or can you now that the style branch has been merged to trunk?
>
I'm not sure. Never tried it out. Before the style branch merger, this 
definitely not worked (continue would only work inside lines on it own 
and inside polygon on its own).
> I would prefer to see this in the style file.  The fewer hard-coded tweaks in
> the mkgmap core, the better.  Is there now a way to implement the
> oneway-cycleway duplication in the style file?
Yes. i.e.
( oneway=yes | oneway=1 ) & ( cycleway=opposite | cycleway:oneway=no ) 
{set oneway=-1; set access=no; set bicycle=yes} [0x.. continue]
>   If there is, could the current
> code be removed from the core?
>
Yes I would not see why it is needed.
>   Marko
> ___
> mkgmap-dev mailing list
> mkgmap-dev@lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>

___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] [PATCH] Routable pedestrian areas

2010-04-07 Thread Marko Mäkelä
On Wed, Apr 07, 2010 at 11:35:52PM +0200, Minko wrote:
>On my "Openfietsmap" a routable cyclemap of the Benelux, I use in the style 
>file
>
>highway=pedestrian & area=yes [0x08 road_class=0 road_speed=0 resolution 22 
>continue]
>
>It routes via the borders of pedestrian areas for pedestrians, so whats the 
>difference with this patch?

An educated guess: you cannot translate the same way to both a polygon (area) 
and a line, or can you now that the style branch has been merged to trunk?

I would prefer to see this in the style file.  The fewer hard-coded tweaks in 
the mkgmap core, the better.  Is there now a way to implement the 
oneway-cycleway duplication in the style file?  If there is, could the current 
code be removed from the core?

Marko
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] [PATCH] Routable pedestrian areas

2010-04-07 Thread Minko
On my "Openfietsmap" a routable cyclemap of the Benelux, I use in the style 
file 

highway=pedestrian & area=yes [0x08 road_class=0 road_speed=0 resolution 22 
continue]

It routes via the borders of pedestrian areas for pedestrians, so whats the 
difference with this patch?

See
http://mijndev.openstreetmap.nl/~ligfietser/openfietsmap/Scripts/Styles/lines

for my style definitions.

Cheers, Minko
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev