示例#1
0
        private void AddOverView(OverViewObject ov)
        {
            string satellite = _filter.Satellite;
            string sensor    = _filter.Sensor;
            string ovsat     = ov.ProjectionInfo.orbitInfo.satellite;

            if (ovsat != satellite ||
                ov.ProjectionInfo.orbitInfo.sensor != sensor)
            {
                return;
            }
            string overviewName = ov.OverviewName;

            _simpleMapControl.AddImageLayer(overviewName, ov.Overview, ov.Envelope, true);
        }
示例#2
0
 private void RefreshOverView()
 {
     _simpleMapControl.RemoveAllImageLayers();
     for (int i = 0; i < _mosaicProjectionFileProvider.FileItems.Length; i++)
     {
         if (_mosaicProjectionFileProvider.FileItems[i] != null)
         {
             string      filename = _mosaicProjectionFileProvider.FileItems[i].MainFile.fileName;
             PrjEnvelope prjEnv   = _mosaicProjectionFileProvider.FileItems[i].Envelope;
             Bitmap      bmp      = _mosaicProjectionFileProvider.FileItems[i].OverViewBmp;
             if (bmp != null && prjEnv != null)
             {
                 Core.DrawEngine.CoordEnvelope env = new Core.DrawEngine.CoordEnvelope(prjEnv.MinX, prjEnv.MaxX, prjEnv.MinY, prjEnv.MaxY);
                 _simpleMapControl.AddImageLayer(filename, bmp, env, true);
             }
         }
     }
     _simpleMapControl.Render();
 }
示例#3
0
        private void AddOverView(string pngfilename)
        {
            if (!File.Exists(pngfilename))
            {
                return;
            }
            string hdrfilename = pngfilename.Replace(".overview.png", ".hdr");

            if (!File.Exists(hdrfilename))
            {
                return;
            }
            HdrFile hdrFile = HdrFile.LoadFrom(hdrfilename);

            Core.DrawEngine.CoordEnvelope env = CoordEnvelopeFromHdr(hdrFile);
            Bitmap bmp = LoadImage(pngfilename);

            _simpleMapControl.AddImageLayer(pngfilename, bmp, env, true);
            _simpleMapControl.Render();
        }