uk.me.parabola.mkgmap.osmstyle
Class OverlayReader
java.lang.Object
uk.me.parabola.mkgmap.osmstyle.OverlayReader
public class OverlayReader
- extends java.lang.Object
Reads the overlay file.
There are not many line types available in the version of the .img
format that we are using, but you can simulate more by clever use
of TYP files and overlaying lines on top of each other.
The format of the file is just a series of lines that start with
the fake type and followed by a list of types that will actually
be created.
Eg.
0x123: 0x12, 0x14, 0x15
If a rule results in the type 0x123 (which wouldn't normally show up)
it is replaced by three lines with the type 0x12, 0x14, 0x15.
- Author:
- Steve Ratcliffe
- See Also:
- Example of the technique
Constructor Summary |
OverlayReader(java.io.Reader r,
java.lang.String filename)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OverlayReader
public OverlayReader(java.io.Reader r,
java.lang.String filename)
readOverlays
public void readOverlays()
addLine
public void addLine(MapLine line,
LineAdder adder)