pre-process speed: restrictions file split
This commit is contained in:
parent
4be0e456b2
commit
ab621d2b2e
7 changed files with 186 additions and 25 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue