Greetings,I'm trying to preview raster data from an external data source (usb/cd/dvd/folder, etc.) but don't want to view the image on loading. I only want to view its footprint data in the manner as the mosaic dataset displays it.1. Is it possible to change the look if the layer info similarly to how the footprint layer info of a mosaic dataset looks? It wouls also be nice if I could capture the rendering rule (or drawing info?) of an existing mosaic dataset to keep display equality.2. Why does the sample code calls it "render for vector layers"?
DynamicLayerInfoCollection layerInfos = localDynamicLayer.getDynamicLayerInfos();
DynamicLayerInfo layerInfo = layerInfos.get(0);
/* Apply a renderer for vector layers.
* Note: It is always necessary to provide a renderer, but the renderer provided does
* not need to be valid with regard to the actual layer and geometry type, it simply
* needs to be a valid renderer. If the renderer specified here is not appropriate for
* the geometry type of the layer the symbology will fall back to a default
* SimpleMarkerSymbol, SimpleLineSymbol or SimpleFillSymbol.
*/
DrawingInfo drawingInfo = new DrawingInfo(simpleRenderer, TRANSPARENCY);
layerInfo.setDrawingInfo(drawingInfo);
// Create the raster data source
RasterDataSource dataSource = new RasterDataSource();
dataSource.setWorkspaceId(workspaceId);
dataSource.setDataSourceName(fileName);
// Set the data source
LayerDataSource layerDataSource = new LayerDataSource();
layerDataSource.setDataSource(dataSource);
layerInfo.setLayerSource(layerDataSource);