The IlvCADRGTocReader class allows you to read a table
of contents file (the A.TOC
file). It gives
access to the elements of the CADRG volume according to the following
object model:
The CADRG frames are represented by
instances of the class
IlvCADRGFrame class.
The following example reads the table of contents of
a CADRG volume:
IlvCADRGTocReader tocReader = new IlvCADRGTocReader(fileName);
Enumeration frames = tocReader.getOverviewFrames();
while (frames.hasMoreElements()) {
IlvCADRGFrame frame = (IlvCADRGFrame) frames.nextElement();
IlvMapFeatureIterator iterator = frame.makeReader(false);
mapLoader.load(iterator);
}