예제 #1
0
        private void ViewGridfile()
        {
            this.BeginInvoke(new UpdateProgressBarDelegate(UpdateProgressBarToMarquee));
            MessageBox.Show("即将导入大数据,可能会出现界面无响应的情况,请耐心等待,点击确定键继续");
            GridBoundsAndFilenames temGrid = new GridBoundsAndFilenames();

            grd.Open((string)Map.Tag);

            temGrid.XMin          = grd.Extents.xMin;
            temGrid.XMax          = grd.Extents.xMax;
            temGrid.YMin          = grd.Extents.yMin;
            temGrid.YMax          = grd.Extents.yMax;
            temGrid.GridFileNames = grd.Filename;
            grdBndFilenames.Add(temGrid);
            Utils           u   = new Utils();
            GridColorScheme sch = new GridColorScheme();

            sch.UsePredefined(-200, 9000, PredefinedColorScheme.ReversedRainbow);
            sch.ApplyColoringType(ColoringType.Hillshade);



            //MessageBox.Show("即将导入大数据,可能会出现界面无响应的情况,请耐心等待,点击确定键继续");
            //GridImage = u.GridToImage(temThreadGrid, sch);
            //gridImages.Add(GridImage);
            this.BeginInvoke(new UpdateProgressBarDelegate(UpdateProgressBarToBlocks));
            MessageBox.Show("导入完成");
        }
예제 #2
0
 private bool IsInThisBounds(GridBoundsAndFilenames grdBndFilename, double x, double y)
 {
     if ((x >= grdBndFilename.XMin) & (x <= grdBndFilename.XMax) & (y >= grdBndFilename.YMin) & (y <= grdBndFilename.YMax))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }