Commit: r1409: Add support for generating multiple map objects from a single OSM object.

Version 1409 was commited by markb on 2009-11-27 20:52:16 +0000 (Fri, 27 Nov 2009) Add support for generating multiple map objects from a single OSM object. The style system is augmented with 'continue' and 'stop' commands that can be used in style rule files to facilitate the generation of more than one map object (line or POI) from a single OSM object. Patch supplied by Felix Hartmann.

svn commit schrieb:
Version 1409 was commited by markb on 2009-11-27 20:52:16 +0000 (Fri, 27 Nov 2009)
Add support for generating multiple map objects from a single OSM object.
The style system is augmented with 'continue' and 'stop' commands that can be used in style rule files to facilitate the generation of more than one map object (line or POI) from a single OSM object.
Sounds very cool. Can you give a full example how to use the continue and stop commands, please? Is it something like this or am I wrong? Imagine there is a node tagged with amenity=restaurant and tourism=hotel and I'd like to have 2 nodes in Garmin map. amenity=restaurant {continue} [0x2a00 resolution 24] tourism=hotel {stop} [0x2b00 resolution 24] Thanks Christoph

On Nov 28, 2009, at 10:50, Christoph Wagner wrote:
svn commit schrieb:
Version 1409 was commited by markb on 2009-11-27 20:52:16 +0000 (Fri, 27 Nov 2009)
Add support for generating multiple map objects from a single OSM object.
The style system is augmented with 'continue' and 'stop' commands that can be used in style rule files to facilitate the generation of more than one map object (line or POI) from a single OSM object.
Sounds very cool. Can you give a full example how to use the continue and stop commands, please? Is it something like this or am I wrong?
Here is an example: tunnel=* [0x12 resolution 20 continue] This would create a second line which you could use (with an appropriate typ file) to create a special overlay for all lines which have the tunnel tag defined. (This is theoretically a bad example, because lines with the tag tunnel=no would also be included, but this gives you an idea of how the feature should work). As far as I can tell, people see to be using this kind of thing for tunnels, bridges, and one-way streets in particular. - I can't say how the stop command should work differently from the default behaviour though. - There are also issues with the line draw order, I believe, if you particularly want one line to appear on top of the other. Hope this helps. Cheers

Clinton Gladstone wrote:
On Nov 28, 2009, at 10:50, Christoph Wagner wrote:
svn commit schrieb:
Version 1409 was commited by markb on 2009-11-27 20:52:16 +0000 (Fri, 27 Nov 2009)
Add support for generating multiple map objects from a single OSM object.
The style system is augmented with 'continue' and 'stop' commands that can be used in style rule files to facilitate the generation of more than one map object (line or POI) from a single OSM object.
Sounds very cool. Can you give a full example how to use the continue and stop commands, please? Is it something like this or am I wrong?
Here is an example:
tunnel=* [0x12 resolution 20 continue]
This would create a second line which you could use (with an appropriate typ file) to create a special overlay for all lines which have the tunnel tag defined. (This is theoretically a bad example, because lines with the tag tunnel=no would also be included, but this gives you an idea of how the feature should work).
Just to clarify: this doesn't create a second line does it? I thought it just allows separate rules to match the same OSM object? Or have I misunderstood? I thought it was the overlays style file that creates copies of an OSM way so that you can apply different TYP styles to a single OSM object. Charlie

Charlie wrote:
Clinton Gladstone wrote:
On Nov 28, 2009, at 10:50, Christoph Wagner wrote:
svn commit schrieb:
Version 1409 was commited by markb on 2009-11-27 20:52:16 +0000 (Fri, 27 Nov 2009)
Add support for generating multiple map objects from a single OSM object.
The style system is augmented with 'continue' and 'stop' commands that can be used in style rule files to facilitate the generation of more than one map object (line or POI) from a single OSM object.
Sounds very cool. Can you give a full example how to use the continue and stop commands, please? Is it something like this or am I wrong?
Here is an example:
tunnel=* [0x12 resolution 20 continue]
This would create a second line which you could use (with an appropriate typ file) to create a special overlay for all lines which have the tunnel tag defined. (This is theoretically a bad example, because lines with the tag tunnel=no would also be included, but this gives you an idea of how the feature should work).
Just to clarify: this doesn't create a second line does it? I thought it just allows separate rules to match the same OSM object? Or have I misunderstood? I thought it was the overlays style file that creates copies of an OSM way so that you can apply different TYP styles to a single OSM object.
It allows a rule to match again the same object. So you can create several lines from one way based on different keys. So instead of having: highway=way & brides=yes [0x123} - - - with 0x123 specifying several types you could use use bridge=yes [0x10a00 resolution 22 continue] highway=way [0x01 road_class=0 road_speed=1 resolution 20] This has the advantage of not needing to use bridge=yes for any combination in which it could be used. Note, currently ways using continue should not be routable - otherwise you it gets really complicated. Also you cannot use bridge=yes [0x01 continue] bridge=yes [0x02 road_class 0 road_speed=0] -- the check for tags needs to be different, otherwise the second gets dropped even though continue flag was used.
Charlie
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Felix Hartmann schrieb:
you could use use bridge=yes [0x10a00 resolution 22 continue] highway=way [0x01 road_class=0 road_speed=1 resolution 20]
This has the advantage of not needing to use bridge=yes for any combination in which it could be used. Note, currently ways using continue should not be routable - otherwise you it gets really complicated.
Also you cannot use bridge=yes [0x01 continue] bridge=yes [0x02 road_class 0 road_speed=0] -- the check for tags needs to be different, otherwise the second gets dropped even though continue flag was used.
Is it possible with "continue" to have a polygon and a way from one OSM way? For example: OSM: highway=pedestrian & area=yes Garmin: One pedestrian polygon + one routable pedestrian way around the polygon. Chris

On 03.12.2009 21:44, Chris-Hein Lunkhusen wrote:
Felix Hartmann schrieb:
you could use use bridge=yes [0x10a00 resolution 22 continue] highway=way [0x01 road_class=0 road_speed=1 resolution 20]
This has the advantage of not needing to use bridge=yes for any combination in which it could be used. Note, currently ways using continue should not be routable - otherwise you it gets really complicated.
Also you cannot use bridge=yes [0x01 continue] bridge=yes [0x02 road_class 0 road_speed=0] -- the check for tags needs to be different, otherwise the second gets dropped even though continue flag was used.
Is it possible with "continue" to have a polygon and a way from one OSM way?
For example:
OSM: highway=pedestrian& area=yes
Garmin: One pedestrian polygon + one routable pedestrian way around the polygon.
Chris
Yes with the newest version it is. however you have to watch out not to have any other line with highway=pedestrian in your stylefile. i.e. highway=pedestrian & area!=yes [...resolution 22] highway=pedestrian & area=yes [..... resolution ?? continue] and then in your polygon file highway=predestrian & area=yes [..] If you have highway=pedestrian [... continue] highway=pedestrian & area=yes [... continue] THEN it will not work. Only one copy, no more. will work.
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Felix Hartmann schrieb:
Is it possible with "continue" to have a polygon and a way from one OSM way?
Yes with the newest version it is. however you have to watch out not to have any other line with highway=pedestrian in your stylefile. i.e.
highway=pedestrian & area!=yes [...resolution 22] highway=pedestrian & area=yes [..... resolution ?? continue]
and then in your polygon file highway=predestrian & area=yes [..]
If you have
highway=pedestrian [... continue] highway=pedestrian & area=yes [... continue]
THEN it will not work. Only one copy, no more.
Hi, anyone tried this out? I can't get this to work (v1414). Chris

On Dec 5, 2009, at 18:00, Chris-Hein Lunkhusen wrote:
highway=pedestrian [... continue] highway=pedestrian & area=yes [... continue]
THEN it will not work. Only one copy, no more.
Hi, anyone tried this out? I can't get this to work (v1414)
I have not yet tried this out, but it is perhaps worth mentioning that a number of months ago I provided a patch for copying (in the Java code and not the style file) pedestrian areas to ways. I had hoped that the continue command would make my patch obsolete. Cheers.
participants (6)
-
Charlie
-
Chris-Hein Lunkhusen
-
Christoph Wagner
-
Clinton Gladstone
-
Felix Hartmann
-
svn commit