Hi,
I’m using the eval version of the WPF control, and I tried to load an ECW file using very simple code such as:wpfMap1.MapUnit = GeographyUnit.DecimalDegree;
wpfMap1.CurrentExtent =
new
RectangleShape(-118.098, 84.3, 118.098, -84.3);
EcwRasterLayer ecwImageLayer =
new
EcwRasterLayer(@
“C:\Users\steve\Desktop\MapData\gravity_unfiltered_image.ecw”
);
//EcwRasterLayer ecwImageLayer = new EcwRasterLayer(@"…\SampleData\Data\World.ecw");
//ecwImageLayer.UpperThreshold = double.MaxValue;
//ecwImageLayer.LowerThreshold = 0;
LayerOverlay staticOverlay =
new
LayerOverlay();
staticOverlay.Layers.Add(
“EcwImageLayer”
, ecwImageLayer);
wpfMap1.Overlays.Add(staticOverlay);
wpfMap1.Refresh();
The eval version ships with 7.0.0.0 of the controls, I also tried a daily build 7.0.0.36
I’ve emailled the ecw file to forumsupport@thinkgeo.com as the file exceeds your limit
Thanks,
Steve