首页 / 浏览问题 / 三维GIS / 问题详情
三维场景中进行日照分析
yzs
3EXP 2016年11月10日
三维日照分析中,

ShadowVisibilityQuery shadowVisibilityQuery = new ShadowVisibilityQuery(m_sceneControl.Scene);
                    shadowVisibilityQuery.QueryRegion = geoRegion3D;
                    shadowVisibilityQuery.StartTime =new DateTime(2016,11,10,6,0,0);
                    shadowVisibilityQuery.EndTime = new DateTime(2016, 11, 10, 12, 0, 0);
                    shadowVisibilityQuery.ShadowRatioRange = new Point2D(1,10);
                    shadowVisibilityQuery.Spacing = 2;

                   shadowVisibilityQuery.Build();

这样是否就可以出现分析的结果了呢?

1个回答

ShadowVisibilityQuery shadowQuery = new ShadowVisibilityQuery(m_sceneControl.Scene);
            shadowQuery.BaseUtcOffset = m_baseUtcOffset;
            shadowQuery.Spacing = m_spacing;
            shadowQuery.StartTime = m_startTime;
            shadowQuery.EndTime = m_endTime;
            shadowQuery.TimeInterval = m_timeInterval;

            //设置颜色表
            ColorDictionary colorDict = new ColorDictionary();
            colorDict[0] = Color.Blue;
            colorDict[30] = Color.Green;
            colorDict[60] = Color.Orange;
            colorDict[100] = Color.Red;
            shadowQuery.ColorDictTable = colorDict;

设置这样设置了之后还需要开启太阳特效,和图层显示阴影效果才行。sun.isvisible=true; layer3d.shadowtype=shadowtype.all
897EXP 2016年11月10日
是这样的,日照分析是可以了,但他的属性MaxAltitude和MinAltitude,这两个属性我设置不了?

shadowQuery.BaseUtcOffset = m_baseUtcOffset;
            shadowQuery.Spacing = m_spacing;
            shadowQuery.StartTime = m_startTime;
            shadowQuery.EndTime = m_endTime;
            shadowQuery.TimeInterval = m_timeInterval;

这里的每个属性都要设置吗?有一些不设置也可以吧,不过我刚刚说的那两个属性设置不了,我出来的日照结果是贴地的

...