logo separator

[mkgmap-dev] [PATCH] turn restrictions - alpha code for testing

From Carlos Dávila cdavilam at jemila.jazztel.es on Mon Feb 23 17:04:32 GMT 2009

Mark Burton escribió:
> Folks,
>
> The attached patch implements the OSM turn restriction relation as described in
>
>  http://wiki.openstreetmap.org/wiki/Relation:restriction
>
> Here's an example that shows multiple relations being used at a junction
>
>  http://www.openstreetmap.org/?lat=50.26386&lon=10.96498&zoom=17
>
> JOSM shows little restriction signs but I think a lot of renderers won't
> show anything.
>
> Only "well formed" turn restrictions are handled - i.e. the 'from' and 'to'
> ways must terminate at the 'via' node.
>
> Badly formed turn restrictions will yield a (hopefully) useful error
> message that includes the OSM id so that you can go find the relation
> using JOSM, etc and fix it.
>
> Multiple 'via' members or the 'via' member being a way rather than a node are
> not handled. Those variants are not forbidden by the above description but
> not encouraged either and I don't, at this time, think there's good reason
> to handle them - if you believe otherwise and can present a compelling case
> for their inclusion, I will add support for them.
>
> The "except", "day_on/off", "hour_on/off" tags are ignored. I don't
> know how to express those constraints in garmin-speak.
>
> The --ignore-turn-restrictions option can be used to disable the feature.
>
> Please test and report success/failure, etc.
>
> Cheers,
>
> Mark
I've tried your patch, but can't build the map. Only first relation
below is known to be badly formed.
GRAVE (RestrictionRelation): Turn restriction 67728 'to' way doesn't
start or end at 'via' node (39,47141/-6,38059)
GRAVE (RestrictionRelation): Turn restriction 65998 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 67653 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 69891 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 65999 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 67655 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 65997 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 67654 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 69105 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 69104 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 71958 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 71654 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 70233 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 76693 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 66917 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 68592 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 76692 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 73416 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 66916 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 66919 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 66918 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 67657 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 68050 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 67656 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 67659 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 67658 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 69303 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 69302 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 69301 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 74519 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 73703 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 73704 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 79086 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 69306 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 69305 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 69304 has unsupported type
'null'
GRAVE (RestrictionRelation): Turn restriction 66000 has unsupported type
'null'
Exception in thread "main" java.lang.NoSuchMethodError:
uk.me.parabola.imgfmt.app.lbl.LBLFile.createCity(Luk/me/parabola/imgfmt/app/lbl/Region;Ljava/lang/String;)Luk/me/parabola/imgfmt/app/lbl/City;
        at
uk.me.parabola.mkgmap.build.MapBuilder.processPOIs(MapBuilder.java:189)
        at
uk.me.parabola.mkgmap.build.MapBuilder.makeMap(MapBuilder.java:126)
        at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:87)
        at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:53)
        at uk.me.parabola.mkgmap.main.Main.processFilename(Main.java:150)
        at
uk.me.parabola.mkgmap.CommandArgs$Filename.processArg(CommandArgs.java:329)
        at uk.me.parabola.mkgmap.CommandArgs.readArgs(CommandArgs.java:119)
        at uk.me.parabola.mkgmap.main.Main.main(Main.java:91)


Cheers
Carlos



More information about the mkgmap-dev mailing list