logo separator

[mkgmap-dev] [PATCH] Routable pedestrian areas

From Martin Simon grenzdebil at gmail.com on Thu May 20 09:55:21 BST 2010

2010/4/13 Chris66 <chris66nrw at gmx.de>:
>
> 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



More information about the mkgmap-dev mailing list