added bad-TRs analysis to pre-processor
This commit is contained in:
parent
8fd38da5c9
commit
771770af22
5 changed files with 163 additions and 46 deletions
|
|
@ -140,6 +140,11 @@ public class OsmParser extends MapCreatorBase
|
|||
rListener.nextRelation( r );
|
||||
if ( fromWid == null || toWid == null || viaNid == null || viaNid.size() != 1 )
|
||||
{
|
||||
// dummy-TR for each viaNid
|
||||
for( int vi = 0; vi < ( viaNid == null ? 0 : viaNid.size() ); vi++ )
|
||||
{
|
||||
rListener.nextRestriction( r, 0L, 0L, viaNid.get( vi ) );
|
||||
}
|
||||
return;
|
||||
}
|
||||
for( int fi = 0; fi < fromWid.size(); fi++ )
|
||||
|
|
@ -152,7 +157,7 @@ public class OsmParser extends MapCreatorBase
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
throw new RuntimeException( "error writing relation: " + e );
|
||||
throw new RuntimeException( "error writing relation", e );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue