示例#1
0
        /// <summary>
        /// Loads the height data.
        /// </summary>
        private void LoadHeightData()
        {
            tm = new TerrainModel();

            DateTime dtStart = DateTime.Now;

            //tm.LoadXYZFile(@"D:\BigData\SRTM Tiles Germany\srtm_38_03.xyz");
            tm.LoadXYZFile(@"C:\Lanser\BigData\SRTM Tiles Germany\srtm_38_03.xyz");
            DateTime dtStop = DateTime.Now;

            GMapPolygon polygon = new GMapPolygon(new List <PointLatLng>
            {
                new PointLatLng(tm.YMin, tm.XMin),
                new PointLatLng(tm.YMax, tm.XMin),
                new PointLatLng(tm.YMax, tm.XMax),
                new PointLatLng(tm.YMin, tm.XMax)
            });

            mcMapControl.Markers.Add(polygon);

            MB.Information($"Time: {(dtStop - dtStart).ToHHMMSSString()} / Points: {tm.PointCount}");

            GC.WaitForPendingFinalizers();
            GC.Collect();
        }