|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.me.parabola.mkgmap.main.StyleTester
public class StyleTester
Test style rules by converting to a text format, rather than a .img file. In addition you can specify a .osm file and a style file separately.
WAY 42 highway=primary oneway=reverse <<You can have any number of ways, each must end with a blank line. A way will be created with two points (1,1),(2,2) (so you can see the action of oneway=reverse) and the tags that you specify. If you give a number after WAY it will be printed on output so that if you have more than one you can tell which is which. If the number is omitted it will default to 1. You can have as many rules as you like after the <<>> highway=primary [0x3 road_class=2 road_speed=2] power=line [0x29 resolution 20]
Method Summary | |
---|---|
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)
Takes a relation and applies rules that affect the garmin types of its contained elements. |
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. |
static void |
forceUseOfGiven(boolean force)
|
static void |
main(java.lang.String[] args)
|
static void |
runSimpleTest(java.lang.String filename)
Run a simple test with a combined test file. |
void |
setBoundingBox(Area bbox)
Set the bounding box for this map. |
static void |
setOut(java.io.PrintStream out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
public static void setOut(java.io.PrintStream out)
public static void runSimpleTest(java.lang.String filename)
filename
- The test file contains text way definitions and a style
file all in one.public void convertWay(Way way)
OsmConverter
convertWay
in interface OsmConverter
way
- The OSM way.public void convertNode(Node node)
OsmConverter
convertNode
in interface OsmConverter
node
- The node to convert.public void convertRelation(Relation relation)
OsmConverter
convertRelation
in interface OsmConverter
relation
- The relation to convert.public void setBoundingBox(Area bbox)
OsmConverter
setBoundingBox
in interface OsmConverter
bbox
- The bounding area.public void end()
OsmConverter
end
in interface OsmConverter
public static void forceUseOfGiven(boolean force)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |