管道基础大数据平台系统开发-【CS】-ExportMap
OK
13693261870
2024-09-27 566e0d21293a5fe6423fd7a16541bce00eeb2e38
SimuTools/Domain/Terrain.cs
@@ -1,4 +1,5 @@
using System;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
@@ -9,11 +10,20 @@
{
    public class Terrain
    {
        private List<int[]> size { set; get; }
        [JsonIgnore]
        public string epsg { set; get; }
        public List<int[]> size { set; get; }
        [JsonIgnore]
        public double minHeight { set; get; }
        [JsonIgnore]
        public double maxHeight { set; get; }
        public Terrain()
        {
            size = new List<int[]>();
            this.size = new List<int[]>();
            string str = ConfigurationManager.AppSettings["sizes"];
            if (string.IsNullOrEmpty(str)) return;
@@ -24,7 +34,7 @@
                int i;
                if (int.TryParse(s, out i))
                {
                    size.Add(new int[] { i, i });
                    this.size.Add(new int[] { i, i });
                }
            }
        }
@@ -33,5 +43,11 @@
        {
            this.size = size;
        }
        public void SetHeight(double minHeight, double maxHeight)
        {
            this.minHeight = minHeight;
            this.maxHeight = maxHeight;
        }
    }
}