variable length tag descriptions (second thought)

This commit is contained in:
Arndt 2014-05-22 20:26:20 +02:00
parent a145230e0f
commit ba867b4779
20 changed files with 372 additions and 1334 deletions

View file

@ -168,8 +168,9 @@ public class OsmCutter extends MapCreatorBase
relsParsed++;
checkStats();
String route = r.getTag( "route" );
// filter out non-cycle relations
if ( ! "bicycle".equals( r.getTag( "route" ) ) )
if ( route == null )
{
return;
}
@ -177,6 +178,7 @@ public class OsmCutter extends MapCreatorBase
String network = r.getTag( "network" );
if ( network == null ) network = "";
writeId( cyclewayDos, r.rid );
cyclewayDos.writeUTF( route );
cyclewayDos.writeUTF( network );
for ( int i=0; i<r.ways.size();i++ )
{