Symbolick

Loading raster images into accelerated layers.

Discussion created by Symbolick on Oct 4, 2012
Latest reply on Jun 15, 2016 by mohscorpion
I am having issues finding a suitable method of loading a rastered geotiff file into the accelerated layers collection.  My current method that works fine is to load the image into a ElementLayer as follows.

var image = new BitmapImage(new Uri(filePath));
 var newLayer = new ElementLayer();
 var rect = new Rectangle();
 rect.SetValue(ESRI.ArcGIS.Client.ElementLayer.EnvelopeProperty, convertedEnvelope);
 rect.Fill = new ImageBrush(image);
 newLayer.Children.Add(rect);
_esriMap.Layers.Add(newLayer);


This method works fine except I have a accelerated layer collection that is rendering points from GPS readings that needs to be plotted on top of the rastered image.  The only work around I can find is to change the opacity of the Element Layer in order to at least show the points behind the layer.  This is a prefered method, I would like to be able to add the georeferenced image to a layer within my acceleratedLayers collection so I could set the layer order.

If I have not explained my situation well enough let me know and I'll attempt to reword it.

Regards,
    Aaron

Outcomes