Beispiel #1
0
        public DimArray(DimType dimtype, string filePath, int length)
        {
            this.m_DimShort = null;
            this.m_DimByte = null;
            this.m_DimUShort = null;
            this.m_DimOffset = 0;
            this.m_IsDataNeedTransform = true;
            this.m_IsForClutter = false;
            this.m_DimType = dimtype;
            switch (this.m_DimType)
            {
                case DimType.Binary8:
                    this.m_DimByte = new DimArrayTemplate<byte>(filePath, length);
                    this.m_DimBase = this.m_DimByte;
                    break;

                case DimType.Binary16:
                    this.m_DimShort = new DimArrayTemplate<short>(filePath, length);
                    this.m_DimBase = this.m_DimShort;
                    break;

                case DimType.Ubinary16:
                    this.m_DimUShort = new DimArrayTemplate<ushort>(filePath, length);
                    this.m_DimBase = this.m_DimUShort;
                    break;
            }
        }
Beispiel #2
0
        public DimArray(DimType dimType, Huawei.UNet.GIS.GeoInterface.GridType gridType, short benchmarkHeight, short heightStep)
        {
            this.m_DimShort = null;
            this.m_DimByte = null;
            this.m_DimUShort = null;
            this.m_DimOffset = 0;
            this.m_IsDataNeedTransform = true;
            this.m_IsForClutter = false;
            this.m_DimOffset = 0;
            this.m_DimType = dimType;
            this.m_GridType = gridType;
            this.m_BenchmarkHeight = benchmarkHeight;
            this.m_HeightStep = heightStep;
            switch (this.m_DimType)
            {
                case DimType.Binary8:
                    this.m_DimByte = new DimArrayTemplate<byte>();
                    this.m_DimBase = this.m_DimByte;
                    break;

                case DimType.Binary16:
                    this.m_DimShort = new DimArrayTemplate<short>();
                    this.m_DimBase = this.m_DimShort;
                    break;

                case DimType.Ubinary16:
                    this.m_DimUShort = new DimArrayTemplate<ushort>();
                    this.m_DimBase = this.m_DimUShort;
                    break;
            }
        }