如下代码。
/// <summary>
/// 根据字段属性,匹配三维符号库
/// </summary>
private void AddLayers()
{
DatasetVector dataSet_Region = m_data.Datasets["region"] as DatasetVector;
int[] id = { 1 };
Recordset recordset = dataSet_Region.Query(id, CursorType.Static);
GeoRegion georegion = recordset.GetGeometry() as GeoRegion;
int i = m_sceneControl.Scene.GlobalImage.AddExcavationRegion(georegion, "地表局部透明");
Theme3DCustom theme3D = new Theme3DCustom();
theme3D.AltitudeModeExpression = "AltitudeMode";
theme3D.MarkerSymbolIDExpression = "SymbolID";
theme3D.Marker3DScaleXExpression = "ScaleX";
theme3D.Marker3DScaleYExpression = "ScaleY";
theme3D.Marker3DScaleZExpression = "ScaleZ";
theme3D.Marker3DRotateXExpression = "RotationX";
theme3D.Marker3DRotateYExpression = "RotationY";
theme3D.Marker3DRotateZExpression = "RotationZ";
m_layerNetNode = m_sceneControl.Scene.Layers.Add(m_datasetPoint3D, theme3D, true);
Layer3DSettingVector settingLine = new Layer3DSettingVector();
settingLine.Style.AltitudeMode = AltitudeMode.RelativeToUnderground;
settingLine.Style.LineSymbolID = 964526;
settingLine.Style.LineColor = Color.White;
settingLine.Style.LineWidth = 0.3;
m_layerNetLine = m_sceneControl.Scene.Layers.Add(m_datasetLine3D, settingLine, true);
}
其中m_data是从sqlservice数据库获取的数据源,设置该数据库下的m_datasetLine3D和m_datasetPoint3D点线数据集的符号风格,然后通过scenecontrol控件显示出来,如下:
其中点线的符号显示出问题,这是什么原因