您好,您的数据是二维面数据吗?您使用的哪个版本呢?详细版本号可以在【文件】->【关于】中查看。建议您下载最新版本使用,下载链接如下:http://support.supermap.com.cn/DownloadCenter/ProductPlatform.aspx。如果还存在问题的话,您再联系我。
希望可以帮助到您!
您好,通过Layer3DSettingVector 进行设置,示例代码如下:
//矢量数据集三维图层扩展设置矢量数据集三维图层扩展设置 Layer3DSettingVector layer3DSettingVector = new Layer3DSettingVector(); GeoStyle3D geoStyle3D = new GeoStyle3D(); geoStyle3D.AltitudeMode = AltitudeMode.RelativeToGround; geoStyle3D.FillMode = FillMode3D.LineAndFill; geoStyle3D.LineColor = Color.Red; geoStyle3D.LineWidth = 1; layer3DSettingVector.Style = geoStyle3D; layer3DSettingVector.BottomAltitudeField = "BottomAltitude"; layer3DSettingVector.ExtendedHeightField = "ExtendedHeight"; layer3DSettingVector.SideTextureField = "SideTexture"; layer3DSettingVector.TopTextureField = "TopTexture"; //将矢量数据集显示在三维地图场景中 Layer3DDataset layer3DDataset=sceneObject.Layers.Add(targetDataset, layer3DSettingVector, true); layer3DDataset.UpdateData(); sceneObject.Refresh();