uk.me.parabola.mkgmap.combiners
Class TdbBuilder

java.lang.Object
  extended by uk.me.parabola.mkgmap.combiners.TdbBuilder
All Implemented Interfaces:
Combiner

public class TdbBuilder
extends java.lang.Object
implements Combiner

Build the TDB file and the overview map.

Author:
Steve Ratcliffe

Constructor Summary
TdbBuilder()
           
 
Method Summary
 void init(CommandArgs args)
          Initialise by saving all the information we require from the command line args.
 void onFinish()
          Called when all the .img files have been processed.
 void onMapEnd(FileInfo finfo)
          Called at the end of every map that is to be combined.
 void setOverviewSource(OverviewMap overviewSource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TdbBuilder

public TdbBuilder()
Method Detail

init

public void init(CommandArgs args)
Initialise by saving all the information we require from the command line args.

Specified by:
init in interface Combiner
Parameters:
args - The command line arguments as they are at the end of the list. In other words if the same argument appears more than once, then it will

onMapEnd

public void onMapEnd(FileInfo finfo)
Called at the end of every map that is to be combined. We only deal with IMG files and ignore everything else.

Specified by:
onMapEnd in interface Combiner
Parameters:
finfo - Information on the file.

onFinish

public void onFinish()
Called when all the .img files have been processed. We finish up and create the TDB file and the overview map.

Specified by:
onFinish in interface Combiner

setOverviewSource

public void setOverviewSource(OverviewMap overviewSource)