To benefit from Rogue Wave® JViews
Maps advanced image tiling capabilities and multithreading, use IlvTiledRasterDataSource in the place of
IlvSDODataSource
Note
This assumes that you want to load an SDO
layer containing raster objects, SDO_GEORASTER.
To use a tiled data source:
-
Instantiate a IlvRasterSDOReaderIlvRasterSDOReader object.This class extends IlvRasterAbstractReaderIlvRasterAbstractReader and holds a list of raster elements. It fetches the following elements from the Oracle® DB
IlvSDOConnection SDOConnection; // the connection to your Oracle DB String layerName; // the name of the oracle layer containing SDO_GEORASTER ... // Initialize your connection. IlvRasterSDOReader sdoReader = new IlvRasterSDOReader(SDOConnection,layerName);
-
Create an IlvTiledRasterDataSourceIlvTiledRasterDataSource backed by the reader.
IlvTiledRasterDataSource tiledSource = IlvRasterDataSourceFactory.buildTiledImageDataSource( view.getManager(), sdoReader, true,true, null);
-
Configure the raster data source, and call the
start()
method to start data production.tiledSource.setManager(view.getManager()); tiledSource.start();