IlvRasterCADRGReader imageReader = new IlvRasterCADRGReader();
IlvCADRGTocReader tocReader = new IlvCADRGTocReader(tocFileName);
IlvCADRGCoverage coverages[]= tocReader.getCoverages();
IlvCADRGCoverageList
: IlvCADRGCoverageList list = new IlvCADRGCoverageList(); list.addCoverages(tocFileName, tocReader.getCoverages()); Integer scales[] = list.getOrderedScaleList(); String scaleDesc[] = list.getOrderedScaleDescription(); IlvCADRGCoverage coverages[] = list.getCoverageList(scales[i]);
for(int iCov=0;iCov<coverages.length;iCov++) { imageReader.addCADRGCoverage(coverages[iCov]); }
IlvMapDataSource imageDataSource = IlvRasterDataSourceFactory.buildTiledImageDataSource(manager,imageReader, true,true,null); IlvMapDataSourceModel dataSourceModel = IlvMapDataSourceProperty.GetMapDataSourceModel(manager); dataSourceModel.insert(imageDataSource);
dataSourceModel.start();