uk.me.parabola.mkgmap.reader.osm
Interface Style

All Known Implementing Classes:
StyleImpl

public interface Style

A style converts an OSM element into a garmin element. You start with an OSM element which is just a bunch of name/value tags and you need to convert this to the information required by the .img format which is basically just a name and an integer type. You also need to know at what zoom levels to show the element at. The Style interface holds the rules for doing this.

Author:
Steve Ratcliffe

Method Summary
 void applyOptionOverride(java.util.Properties config)
          After the style is loaded we override any options that might have been set in the style itself with the command line options.
 StyleInfo getInfo()
           
 Rule getLineRules()
          Get the rules that apply to lines.
 java.lang.String[] getNameTagList()
           
 Rule getNodeRules()
          Get the rules that apply to nodes.
 java.lang.String getOption(java.lang.String name)
           
 LineAdder getOverlays(LineAdder lineAdder)
          Get the overlay definitions.
 Rule getPolygonRules()
          Get the rules that apply to polygons.
 Rule getRelationRules()
          Get the relation rules.
 java.util.Set<java.lang.String> getUsedTags()
          Get the tags that are used by this style.
 Rule getWayRules()
          Get the rules that apply to ways.
 

Method Detail

getNameTagList

java.lang.String[] getNameTagList()

getOption

java.lang.String getOption(java.lang.String name)

getInfo

StyleInfo getInfo()

applyOptionOverride

void applyOptionOverride(java.util.Properties config)
After the style is loaded we override any options that might have been set in the style itself with the command line options. We may have to filter some options that we don't ever want to set on the command line.

Parameters:
config - The command line options.

getWayRules

Rule getWayRules()
Get the rules that apply to ways. This includes lines and polygons as they are not separate primitives in osm. It is a merge of the line rules and the polygon rules.


getNodeRules

Rule getNodeRules()
Get the rules that apply to nodes.


getLineRules

Rule getLineRules()
Get the rules that apply to lines.


getPolygonRules

Rule getPolygonRules()
Get the rules that apply to polygons.


getRelationRules

Rule getRelationRules()
Get the relation rules.


getOverlays

LineAdder getOverlays(LineAdder lineAdder)
Get the overlay definitions. Most styles will not use this.


getUsedTags

java.util.Set<java.lang.String> getUsedTags()
Get the tags that are used by this style.