1.圆形的添加 GSOGeoCircle circle = new GSOGeoCircle();//创建一个圆的对象 circle.Position = new GSOPoint3d(120,30,0);//圆的指定位置 circle.Radius = 10; //圆的半径 GSOSimplePolygonStyle3D style2 = new GSOSimplePolygonStyle3D();//样式 style2.FillColor = Color.FromArgb(30, Color.Red);//设置填充样式为透明度 100,颜色为灰色 circle.Style = style2; GSOFeature f3 = new GSOFeature(); f3.Geometry = circle;//将几何对象加入要素中 f3.Name = "圆"; globeControl1.Globe.MemoryLayer.AddFeature(f3); globeControl1.Globe.FlyToFeature(f3); //飞行到要素2.注意:圆的单位是度,而不是米 圆形的添加 3.立方体添加 GSOGeoBoxEntity box = new GSOGeoBoxEntity(); box.Length = 100; //长度,X 方向,单位:米 box.Width = 200; //宽度,Y 方向,单位:米 box.Height = 100; //高度,Z 方向,单位:米 box.Position = new GSOPoint3d(0, 0, 0); GSOFeature newFeature = new GSOFeature(); newFeature.Geometry = box;//将几何对象加入要素中 newFeature.Name = "立方体"; globeControl1.Globe.MemoryLayer.AddFeature(newFeature); globeControl1.Globe.FlyToFeature(newFeature); //飞行到要素 globeControl1.Refresh(); 立方体添加 4.注意:立方体的单位是米