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
|
@ -174,13 +174,16 @@ public class OsmNodeP extends OsmLinkP
|
||||||
RestrictionData r = getFirstRestriction();
|
RestrictionData r = getFirstRestriction();
|
||||||
while( r != null )
|
while( r != null )
|
||||||
{
|
{
|
||||||
mc.writeBoolean( true ); // restriction follows
|
if ( r.fromLon != 0 && r.toLon != 0 )
|
||||||
mc.writeShort( r.exceptions );
|
{
|
||||||
mc.writeBoolean( r.isPositive );
|
mc.writeBoolean( true ); // restriction follows
|
||||||
mc.writeInt( r.fromLon );
|
mc.writeShort( r.exceptions );
|
||||||
mc.writeInt( r.fromLat );
|
mc.writeBoolean( r.isPositive );
|
||||||
mc.writeInt( r.toLon );
|
mc.writeInt( r.fromLon );
|
||||||
mc.writeInt( r.toLat );
|
mc.writeInt( r.fromLat );
|
||||||
|
mc.writeInt( r.toLon );
|
||||||
|
mc.writeInt( r.toLat );
|
||||||
|
}
|
||||||
r = r.next;
|
r = r.next;
|
||||||
}
|
}
|
||||||
mc.writeBoolean( false ); // end restritions
|
mc.writeBoolean( false ); // end restritions
|
||||||
|
|
Loading…
Reference in a new issue