桌面版开发中怎么获取当前场景的kml层

0 投票
桌面版开发中怎么获取当前场景的kml层
11月 6, 2018 分类:  179次浏览 | 用户: wangzeliang 初出茅庐 (32 分)
重新分类 11月 6, 2018 用户:赵爽

1个回答

1 投票
 
已采纳
IForm activeForm = SuperMap.Desktop.Application.ActiveForm;
SuperMap.Realspace.Scene scene = (activeForm as IFormScene).SceneControl.Scene;

Layer3Dkml layer3dkml = scene .Layers[kmllayer_name] as Layer3Dkml

11月 6, 2018 用户: 程逸诗 名扬四海 (1,242 分)
采纳于 11月 6, 2018 用户:wangzeliang

要再获取kml中的模型对象呢?heart

Feature3D fes = layer3dkml.Features.FindFeature(id, Feature3DSearchOption.AllFeatures);  

GeoPlacemark geoplace = fes.Geometry as GeoPlacemark;  

GeoModel geomod = geoplace.Geometry as GeoModel;

大神,我更改这个geomodel 的属性值之后,还要做什么操作才会确保是更改之后的值
...