uk.me.parabola.imgfmt.app.trergn
Class RGNFileReader
java.lang.Object
uk.me.parabola.imgfmt.app.ImgReader
uk.me.parabola.imgfmt.app.trergn.RGNFileReader
- All Implemented Interfaces:
- java.io.Closeable, Configurable
public class RGNFileReader
- extends ImgReader
The region file. Holds actual details of points and lines etc.
This is the view of the file when it is being read. Use RGNFile
for writing the file.
The main focus of mkgmap is creating files, there are plenty of applications
that read and display the data, reading is implemented only to the
extent required to support creating the various auxiliary files etc.
- Author:
- Steve Ratcliffe
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RGNFileReader
public RGNFileReader(ImgChannel chan)
config
public void config(EnhancedProperties props)
- Description copied from interface:
Configurable
- Used to mark that a reader needs to be configured by command line
properties. The MapReader will be given the command line properties
that were set before it is asked to load the map.
- Parameters:
props
- The input properties.
pointsForSubdiv
public java.util.List<Point> pointsForSubdiv(Subdivision sd)
- Get a list of all points for the given subdivision. This includes
both the indexed points section and the points section.
The numbering of the points carries through the sections.
- Parameters:
sd
- The subdivision that we are interested in.
- Returns:
- A list of all points for the subdiv.
linesForSubdiv
public java.util.List<Polyline> linesForSubdiv(Subdivision div)
setLblFile
public void setLblFile(LBLFileReader lblFile)
setNetFile
public void setNetFile(NETFileReader netFile)