turn restriction relations supported?

Hi, Is this supported in mkgmap? http://wiki.openstreetmap.org/wiki/Relation:restriction What should be added in the relations style file? -- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------

Hi Maning,
Is this supported in mkgmap? http://wiki.openstreetmap.org/wiki/Relation:restriction
What should be added in the relations style file?
Just like multipolygons, it is handled by mkgmap directly, outside the styles. It is supposed to just work, out of the box. But note that the 'via' has to be a node where the 'from' and 'to' ways are starting or ending. (You have to split the ways at the crossing.) mkgmap does parse 'via' ways but will complain that they will be ignored. To see the RestrictionRelation warnings of mkgmap, you will have to enable some logging: java -Dlog.config=logging.properties -ea -jar mkgmap.jar ... You can get a logging.properties file from http://www.polkupyoraily.net/osm/. Best regards, Marko

Thanks! I added this turn restriction for testing: http://www.openstreetmap.org/browse/relation/453702 Will report back when map is compiled. On Thu, Mar 18, 2010 at 3:10 PM, Marko Mäkelä <marko.makela@iki.fi> wrote:
Hi Maning,
Is this supported in mkgmap? http://wiki.openstreetmap.org/wiki/Relation:restriction
What should be added in the relations style file?
Just like multipolygons, it is handled by mkgmap directly, outside the styles. It is supposed to just work, out of the box. But note that the 'via' has to be a node where the 'from' and 'to' ways are starting or ending. (You have to split the ways at the crossing.) mkgmap does parse 'via' ways but will complain that they will be ignored.
To see the RestrictionRelation warnings of mkgmap, you will have to enable some logging:
java -Dlog.config=logging.properties -ea -jar mkgmap.jar ...
You can get a logging.properties file from http://www.polkupyoraily.net/osm/.
Best regards,
Marko _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------

To see the RestrictionRelation warnings of mkgmap, you will have to enable some logging:
java -Dlog.config=logging.properties -ea -jar mkgmap.jar ... Simple question, when the switch -ea is already in the mkgmap syntax as above, you don't have to add the ea in the arguments.list file?
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------

maning sambale (emmanuel.sambale@gmail.com) wrote:
To see the RestrictionRelation warnings of mkgmap, you will have to enable some logging:
java -Dlog.config=logging.properties -ea -jar mkgmap.jar ... Simple question, when the switch -ea is already in the mkgmap syntax as above, you don't have to add the ea in the arguments.list file?
-- Maning,
-ea is a java switch, not a mkgmap switch, so it should be invoked as written above. Have a read of this: http://www.cferrero.net/maps/improve_OSM.html to learn more about logging.properties and using mkgmap to improve OSM data (including turn restrictions). -- Charlie

Just to report, turn restrictions work! Now the enormous task of adding more restriction relations! On Thu, Mar 18, 2010 at 5:28 PM, <charlie@cferrero.net> wrote:
maning sambale (emmanuel.sambale@gmail.com) wrote:
To see the RestrictionRelation warnings of mkgmap, you will have to enable some logging:
java -Dlog.config=logging.properties -ea -jar mkgmap.jar ... Simple question, when the switch -ea is already in the mkgmap syntax as above, you don't have to add the ea in the arguments.list file?
-- Maning,
-ea is a java switch, not a mkgmap switch, so it should be invoked as written above.
Have a read of this: http://www.cferrero.net/maps/improve_OSM.html to learn more about logging.properties and using mkgmap to improve OSM data (including turn restrictions).
-- Charlie
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------

On Thu, 18 Mar 2010 09:10:44 +0200, Marko Mäkelä wrote:
Hi Maning,
Is this supported in mkgmap? http://wiki.openstreetmap.org/wiki/Relation:restriction
What should be added in the relations style file?
Just like multipolygons, it is handled by mkgmap directly, outside the styles. It is supposed to just work, out of the box. But note that the 'via' has to be a node where the 'from' and 'to' ways are starting or ending. (You have to split the ways at the crossing.) mkgmap does parse 'via' ways but will complain that they will be ignored.
Will it properly handle cases where, say, the Garmin is set for bicycle navigation, and will turn anyway if the restriction has "except=bicycle" on it, if appropriate?
participants (4)
-
charlie@cferrero.net
-
maning sambale
-
Marko Mäkelä
-
Paul Johnson