uk.me.parabola.imgfmt.app.mdr
Class MDRFile
java.lang.Object
uk.me.parabola.imgfmt.app.ImgFile
uk.me.parabola.imgfmt.app.mdr.MDRFile
- All Implemented Interfaces:
- java.io.Closeable
public class MDRFile
- extends ImgFile
The MDR file. This is embedded into a .img file, either its own
separate one, or as one file in the gmapsupp.img.
- Author:
- Steve Ratcliffe
Methods inherited from class uk.me.parabola.imgfmt.app.ImgFile |
close, getHeader, getReader, getSize, getWriter, isWritable, position, position, setHeader, setReader, setWriter, sync |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MDRFile
public MDRFile(ImgChannel chan,
MdrConfig config)
addMap
public void addMap(int mapName)
- Add a map to the index. You must add the map, then all of the items
that belong to it, before adding the next map.
- Parameters:
mapName
- The numeric name of the map.
addRegion
public void addRegion(Region region)
addCountry
public void addCountry(Country country)
addCity
public void addCity(Mdr5Record city)
addPoint
public void addPoint(Point point,
Mdr5Record city,
boolean isCity)
addStreet
public void addStreet(Polyline street)
write
public void write()