changed route-preselection

This commit is contained in:
Arndt 2014-05-11 17:20:06 +02:00
parent 1b8c3ccea8
commit d89790cfd3
3 changed files with 9 additions and 5 deletions

View file

@ -98,14 +98,16 @@ public class WayCutter extends MapCreatorBase
// propagate the cycleway-bit // propagate the cycleway-bit
if ( cyclewayset.contains( data.wid ) ) if ( cyclewayset.contains( data.wid ) )
{ {
boolean ok = true;
// check access and log a warning for conflicts // check access and log a warning for conflicts
expctxCheck.evaluate( data.description, null );
boolean ok = expctxCheck.getCostfactor() < 10000.;
expctxReport.evaluate( data.description, null ); expctxReport.evaluate( data.description, null );
boolean warn = expctxReport.getCostfactor() >= 10000.; boolean warn = expctxReport.getCostfactor() >= 10000.;
if ( warn ) if ( warn )
{ {
System.out.println( "** relation access conflict for wid = " + data.wid + " tags:" + expctxReport.getKeyValueDescription( data.description ) + " (ok=" + ok + ")" ); expctxCheck.evaluate( data.description, null );
ok = expctxCheck.getCostfactor() < 10000.;
System.out.println( "** relation access conflict for wid = " + data.wid + " tags:" + expctxReport.getKeyValueDescription( data.description ) + " (ok=" + ok + ")" );
} }
if ( ok ) if ( ok )

View file

@ -11,11 +11,12 @@ assign costfactor
# #
# exclude motorways, proposed roads and motorroads # exclude motorways, proposed roads and motorroads
# #
switch bicycle=yes 1
switch or highway=motorway highway=motorway_link 100000 switch or highway=motorway highway=motorway_link 100000
switch highway=proposed 100000 switch highway=proposed 100000
switch motorroad=yes 100000 switch motorroad=yes 100000
1.0 1
---context:node # following code refers to node tags ---context:node # following code refers to node tags

View file

@ -11,11 +11,12 @@ assign costfactor
# #
# exclude motorways, proposed roads and motorroads # exclude motorways, proposed roads and motorroads
# #
switch bicycle=yes 1
switch or highway=motorway highway=motorway_link 100000 switch or highway=motorway highway=motorway_link 100000
switch highway=proposed 100000 switch highway=proposed 100000
switch motorroad=yes 100000 switch motorroad=yes 100000
1.0 1
---context:node # following code refers to node tags ---context:node # following code refers to node tags