Select to view content in your preferred language

How to add raster data from workspace?

2329
1
Jump to solution
06-27-2013 06:45 AM
by Anonymous User
Not applicable
Original User: vdkamp

What's the best way to add raster data (for example .bil file), wich has a corresponding .prj file, available in a dynamic workspace (registered folder) into a map? ArcMap will read this .bil file without any problems. And in my application I can add a shape file from within the registered folder. But I can't get adding raster data to the map to work.

The shape file is added by creating a TableDataSource, generating a renderer (using GenerateRendererTask) and adding the renderer to the layerDrawingOptions of the dynamiceMapService layer involved. That works.

But now raster data. Is it possible to add directly this kind of data? I tried using RasterDataSource but could not get it working. There seems no projection information in a RasterDataSource. Is it intended for a plain image, without spatial information? Must I create a Graphic and add it to a GraphicLayer? Can someone point me in the right direction?


Thanks,
Albert.
0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable
Original User: vdkamp

My mistake: an error in the creation of the dynamic workspace.

But now it works: creating a RasterDataSource, adding it to a LayerDataSource and adding this to the dynamicLayerInfos of the MapServiceLayer involved. For the corresponding LayerDrawingOptions I only set layerId and alpha (leaving the renderer null).

View solution in original post

0 Kudos
1 Reply
by Anonymous User
Not applicable
Original User: vdkamp

My mistake: an error in the creation of the dynamic workspace.

But now it works: creating a RasterDataSource, adding it to a LayerDataSource and adding this to the dynamicLayerInfos of the MapServiceLayer involved. For the corresponding LayerDrawingOptions I only set layerId and alpha (leaving the renderer null).
0 Kudos