uk.me.parabola.mkgmap.build
Class MapBuilder

java.lang.Object
  extended by uk.me.parabola.mkgmap.build.MapBuilder
All Implemented Interfaces:
Configurable

public class MapBuilder
extends java.lang.Object
implements Configurable

This is the core of the code to translate from the general representation into the garmin representation. We need to go through the data several times, once for each level, filter out features that are not required at the level and simplify paths for lower resolutions if required.

Author:
Steve Ratcliffe

Constructor Summary
MapBuilder()
           
 
Method Summary
 void config(EnhancedProperties props)
          Used to mark that a reader needs to be configured by command line properties.
 void makeMap(Map map, LoadableMapDataSource src)
          Main method to create the map, just calls out to several routines that do the work.
protected  void processInfo(Map map, LoadableMapDataSource src)
          Set all the information that appears in the header.
protected  void processOverviews(Map map, MapDataSource src)
          Create the overview sections.
 void setDoRoads(boolean doRoads)
           
 void setEnableLineCleanFilters(boolean enable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapBuilder

public MapBuilder()
Method Detail

config

public void config(EnhancedProperties props)
Description copied from interface: Configurable
Used to mark that a reader needs to be configured by command line properties. The MapReader will be given the command line properties that were set before it is asked to load the map.

Specified by:
config in interface Configurable
Parameters:
props - The input properties.

makeMap

public void makeMap(Map map,
                    LoadableMapDataSource src)
Main method to create the map, just calls out to several routines that do the work.

Parameters:
map - The map.
src - The map data.

processOverviews

protected void processOverviews(Map map,
                                MapDataSource src)
Create the overview sections.

Parameters:
map - The map details.
src - The map data source.

processInfo

protected void processInfo(Map map,
                           LoadableMapDataSource src)
Set all the information that appears in the header.

Parameters:
map - The map to write to.
src - The source of map information.

setDoRoads

public void setDoRoads(boolean doRoads)

setEnableLineCleanFilters

public void setEnableLineCleanFilters(boolean enable)