pre-process speed: restrictions file split

This commit is contained in:
Arndt Brenschede 2019-09-28 12:56:36 +02:00
parent 4be0e456b2
commit ab621d2b2e
7 changed files with 186 additions and 25 deletions

View file

@ -86,6 +86,12 @@ public class WayCutter extends MapCreatorBase
}
}
public int getTileIndexForNid( long nid )
{
return tileIndexMap.getInt( nid );
}
private int getTileIndex( int ilon, int ilat )
{
int lon = ilon / 45000000;
@ -94,7 +100,7 @@ public class WayCutter extends MapCreatorBase
return lon*6 + lat;
}
protected String getNameForTile( int tileIndex )
public String getNameForTile( int tileIndex )
{
int lon = (tileIndex / 6 ) * 45 - 180;
int lat = (tileIndex % 6 ) * 30 - 90;