Hi
In my styles, i try to disable routing for really small ways with this rules
highway=* & width ~'.*cm'
{
delete width
}
highway=* & width ~'.*m'
{
set width='${width|part:"m"}';
}
highway=* & width ~'.*;.*'
{
set width='${width|subst:",=>."}';
}
highway=* & maxwidth ~'.*cm'
{
delete maxwidth
}
highway=* & maxwidth ~'.*m'
{
set maxwidth='${maxwidth|part:"m"}';
}
highway=* & maxwidth ~'.*,.*'
{
set maxwidth='${maxwidth|subst:",=>."}';
}
highway=*
& highway!=service
& highway!=track
& highway!=path
& highway!=cycleway
& highway!=footway
& highway!=pedestrian
& (maxwidth<2.0 | width<2.0)
{
set mkgmap:throughroute=no;
}
highway=*
& (maxwidth<1.0 | width<1.0)
{
add foot=yes;
add access=no;
}
this seems to work in most cases, but i found some ways like this ways with
semicolon separated values
https://www.openstreetmap.org/way/235493829
https://www.openstreetmap.org/way/47861325
Is it possible, to sort the values and use only the smallest/greatest value?
Bernd
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev