|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.me.parabola.mkgmap.osmstyle.StyledConverter
public class StyledConverter
Convert from OSM to the mkgmap intermediate format using a style. A style is a collection of files that describe the mappings to be used when converting.
Constructor Summary | |
---|---|
StyledConverter(Style style,
MapCollector collector,
java.util.Properties props)
|
Method Summary | |
---|---|
protected boolean |
accessExplicitlyAllowed(java.lang.String val)
|
protected boolean |
accessExplicitlyDenied(java.lang.String val)
|
void |
convertNode(Node node)
Takes a node (that has its own identity) and converts it from the OSM type to the Garmin map type. |
void |
convertRelation(Relation relation)
Run the rules for this relation. |
void |
convertWay(Way way)
This takes the way and works out what kind of map feature it is and makes the relevant call to the mapper callback. |
void |
end()
Called when all conversion has been done. |
void |
setBoundingBox(Area bbox)
Set the bounding box for this map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StyledConverter(Style style, MapCollector collector, java.util.Properties props)
Method Detail |
---|
public void convertWay(Way way)
As a few examples we might want to check for the 'highway' tag, work out if it is an area of a park etc.
convertWay
in interface OsmConverter
way
- The OSM way.public void convertNode(Node node)
convertNode
in interface OsmConverter
node
- The node to convert.public void setBoundingBox(Area bbox)
setBoundingBox
in interface OsmConverter
bbox
- The bounding area, must not be null.public void end()
OsmConverter
end
in interface OsmConverter
public void convertRelation(Relation relation)
convertRelation
in interface OsmConverter
relation
- The relation to convert.protected boolean accessExplicitlyAllowed(java.lang.String val)
protected boolean accessExplicitlyDenied(java.lang.String val)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |