首页 / 浏览问题 / 组件GIS / 问题详情
桌面版开发中怎么获取当前场景的kml层
32EXP 2018年11月06日
桌面版开发中怎么获取当前场景的kml层

1个回答

IForm activeForm = SuperMap.Desktop.Application.ActiveForm;
SuperMap.Realspace.Scene scene = (activeForm as IFormScene).SceneControl.Scene;

Layer3Dkml layer3dkml = scene .Layers[kmllayer_name] as Layer3Dkml

4,620EXP 2018年11月06日

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

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

GeoPlacemark geoplace = fes.Geometry as GeoPlacemark;  

GeoModel geomod = geoplace.Geometry as GeoModel;

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