Select to view content in your preferred language

Raster Folder Connection Footprint Rendering

1922
2
Jump to solution
07-19-2013 06:32 AM
CarlosColón-Maldonado
Frequent Contributor
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);
0 Kudos
1 Solution

Accepted Solutions
EricBader
Honored Contributor
Right, it would be useful to be able to render just the extents/footprints of the rasters in a mosaic. At this time there isn't a way to do this in the Runtime API, unfortunately.

The comment about rendering vectors in the raster sample must be a copy/paste error. We apologize for the confusion here. Thank you for pointing this out!

View solution in original post

0 Kudos
2 Replies
EricBader
Honored Contributor
Right, it would be useful to be able to render just the extents/footprints of the rasters in a mosaic. At this time there isn't a way to do this in the Runtime API, unfortunately.

The comment about rendering vectors in the raster sample must be a copy/paste error. We apologize for the confusion here. Thank you for pointing this out!
0 Kudos
JerrySmith
Emerging Contributor
In general, the term layer refers to raster or vector data that contains geographic features. Vector layers are analogous to featureTypes and raster layers are analogous to coverages. Layers represent each feature that needs to be shown on a map. All layers have a source of data. Vector types store information about feature types as mathematical pathsâ??a point as a single x,y coordinate, lines as a series of x,y coordinates, and polygons as a series of x,y coordinates that start and end on the same place. Raster format data is a cell-based representation of features on the earth surface. Each cell has a distinct value, and all cells with the same value represent a specific feature.
0 Kudos