uk.me.parabola.mkgmap.reader.osm
Class CoastlineElementSaver

java.lang.Object
  extended by uk.me.parabola.mkgmap.reader.osm.ElementSaver
      extended by uk.me.parabola.mkgmap.reader.osm.CoastlineElementSaver

public class CoastlineElementSaver
extends ElementSaver

This saver only keeps ways with natural=coastline tags. This is used for loading of extra coastline files.

Author:
WanMil

Field Summary
 
Fields inherited from class uk.me.parabola.mkgmap.reader.osm.ElementSaver
MKGMAP_REMOVE_TAG, MKGMAP_REMOVE_TAG_ALL_KEY
 
Constructor Summary
CoastlineElementSaver(EnhancedProperties args)
           
 
Method Summary
 void addNode(Node node)
          Add the given node and save it.
 void addRelation(Relation rel)
          Add the given relation.
 void addWay(Way way)
          Add the given way.
 void convert(OsmConverter converter)
          After the input file is read, this is called to convert the saved information into the general intermediate format.
 
Methods inherited from class uk.me.parabola.mkgmap.reader.osm.ElementSaver
addPoint, createMultiPolyRelation, createSeaPolyRelation, deferRelation, finishLoading, getBoundingBox, getCoord, getNode, getRelation, getWay, getWays, setBoundingBox
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoastlineElementSaver

public CoastlineElementSaver(EnhancedProperties args)
Method Detail

addNode

public void addNode(Node node)
Description copied from class: ElementSaver
Add the given node and save it. The node should have tags.

Overrides:
addNode in class ElementSaver
Parameters:
node - The osm node.

addWay

public void addWay(Way way)
Description copied from class: ElementSaver
Add the given way.

Overrides:
addWay in class ElementSaver
Parameters:
way - The osm way.

addRelation

public void addRelation(Relation rel)
Description copied from class: ElementSaver
Add the given relation.

Overrides:
addRelation in class ElementSaver
Parameters:
rel - The osm relation.

convert

public void convert(OsmConverter converter)
Description copied from class: ElementSaver
After the input file is read, this is called to convert the saved information into the general intermediate format.

Overrides:
convert in class ElementSaver
Parameters:
converter - The Converter to use.