supress TRs with from or to not containiong via node
This commit is contained in:
parent
638ce5bbd7
commit
1cee6f3139
1 changed files with 10 additions and 7 deletions
|
@ -173,6 +173,8 @@ public class OsmNodeP extends OsmLinkP
|
|||
// write turn restrictions
|
||||
RestrictionData r = getFirstRestriction();
|
||||
while( r != null )
|
||||
{
|
||||
if ( r.fromLon != 0 && r.toLon != 0 )
|
||||
{
|
||||
mc.writeBoolean( true ); // restriction follows
|
||||
mc.writeShort( r.exceptions );
|
||||
|
@ -181,6 +183,7 @@ public class OsmNodeP extends OsmLinkP
|
|||
mc.writeInt( r.fromLat );
|
||||
mc.writeInt( r.toLon );
|
||||
mc.writeInt( r.toLat );
|
||||
}
|
||||
r = r.next;
|
||||
}
|
||||
mc.writeBoolean( false ); // end restritions
|
||||
|
|
Loading…
Reference in a new issue