您好,您可以参考以下代码对kml图层进行编辑
public void Geometry3DSample(Scene sceneObject)
{
// 得到顶层的三维要素对象
Layer3D layer3D = sceneObject.Layers.Add(@"D:\SampleData\kml.kml",Layer3DType.KML, true);
Feature3D feature3D = layer3D.Features[0] as Feature3D;
// 获得三维要素对应的三维几何对象
GeoPlacemark geoPlacemark = feature3D.Geometry as GeoPlacemark;
Geometry3D geometry3D = geoPlacemark.Geometry as Geometry3D;
// 将三维几何对象进行平移
geometry3D.Offset(10, 10, 12);
// 设置三维几何对象的属性
geometry3D.ID = 25;
geometry3D.Position = new Point3D(20, 25, 20);
geometry3D.RotationX = 10;
geometry3D.RotationY = 15;
geometry3D.RotationZ = 5;
geometry3D.ScaleX = 0.5;
geometry3D.ScaleY = 0.8;
geometry3D.ScaleZ = 1.2;
// 释放资源
geometry3D.Dispose();
feature3D.Dispose();
}