Hi,
Now with the dll 6.0 I have an error when I zoom in or zoom out (ie. Raster RasterError.png + RasterError_20120926.txt)
When I used the dll 5.5, I did not have this kind of problem.
Have you met already this problem ?
For display the raster, I user the class MultiGeoRasterLayer.cs and the code is :
MultiGeoRasterLayer.BuildReferenceFile("C:\\Steph_WPFCarto\\Telechargements\\ThinkGeo\\MultiGeoRasterLayer\\data\\referenceFileECW.txt", "C:\\Steph_Carto\\RasterDalles\\Toto");
MultiGeoRasterLayer multiGeoRasterLayer = new MultiGeoRasterLayer("C:\\Steph_WPFCarto\\Telechargements\\ThinkGeo\\MultiGeoRasterLayer\\data\\referenceFileECW.txt");
multiGeoRasterLayer.LowerScale = wpfMap1.ZoomLevelSet.ZoomLevel20.Scale - 5;
multiGeoRasterLayer.UpperScale = wpfMap1.ZoomLevelSet.ZoomLevel15.Scale + 5;
LayerOverlay rasterECWOverlay = new LayerOverlay();
rasterECWOverlay.TileCache = new FileBitmapTileCache(@"..\..\App_Data\layerOverlayDrawWithCacheECW\\", "ManualCache");
Bitmap nativeImageECW = new Bitmap((int)wpfMap1.ActualWidth, (int)wpfMap1.ActualHeight);
GdiPlusGeoCanvas geoCanvasECW = new GdiPlusGeoCanvas();
geoCanvasECW.BeginDrawing(nativeImageECW, wpfMap1.CurrentExtent, wpfMap1.MapUnit);
rasterECWOverlay.Draw(geoCanvasECW);
geoCanvasECW.EndDrawing();
rasterECWOverlay.TileCache = null;
...
rasterECWOverlay.Layers.Add("RasterECW", multiGeoRasterLayer);
wpfMap1.Overlays.Add("Sql2008LayerOverlay1", rasterECWOverlay);
Thanks a lot.
Regards.
Steph
001_Message_20120926.txt (4.85 KB)