ThinkGeo.com    |     Documentation    |     Premium Support

ECW and TIFF size limit

Hello


I am using both Geo TIFF and ECW images in out application (C# Windows Forms).


Do somebody know if there is any constraint/limitation for the ECW and Geo TIFF raster images ?


Size limit ?


Thanks


 



Domenico,


For the tiff and ecw image files, we have different class to load them, please refer the following code:


EcwRasterLayer:


 



  winformsMap1.MapUnit = GeographyUnit.DecimalDegree;
            winformsMap1.CurrentExtent = new RectangleShape(-118.098, 84.3, 118.098, -84.3);
            winformsMap1.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean);

            EcwRasterLayer ecwImageLayer = new EcwRasterLayer(@"..\..\SampleData\Data\World.ecw");
            ecwImageLayer.Open(); 
            ecwImageLayer.Close();
            ecwImageLayer.UpperThreshold = double.MaxValue;
            ecwImageLayer.LowerThreshold = 0;

            LayerOverlay imageOverlay = new LayerOverlay();
            imageOverlay.Layers.Add("EcwImageLayer", ecwImageLayer);
            winformsMap1.Overlays.Add(imageOverlay);

            winformsMap1.Refresh();
  GeoTiffRasterLayer:


 



   winformsMap1.MapUnit = GeographyUnit.DecimalDegree;
            winformsMap1.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean);

            GeoTiffRasterLayer worldImageLayer = new GeoTiffRasterLayer(@"..\..\SampleData\Data\world.tif");
            worldImageLayer.UpperThreshold = double.MaxValue;
            worldImageLayer.LowerThreshold = 0;
            worldImageLayer.IsGrayscale = false;

            LayerOverlay ImageOverlay = new LayerOverlay();
            ImageOverlay.Layers.Add("WorldImageLayer", worldImageLayer);
            winformsMap1.Overlays.Add(ImageOverlay);

            winformsMap1.CurrentExtent = new RectangleShape(-118.098, 84.3, 118.098, -84.3);
            winformsMap1.Refresh();
  Actually, when using them, there are not any limits, just note you need the extent file for the ecw and tif files, the tif file needs the associate tfw file and the ecw file needs the associate eww file so that we can determine its extent and load them properly.   Any more questions please let me know,


Thanks,


Scott,