代码已贴,执行后与用8c打开对比图如图,在8c中我的模型可以显示,但在我的程序中对应经纬度就没有模型,请问是什么原因造成的
private SceneControl myscenecl;
private Workspace mywokspace;
public Form1()
{
InitializeComponent();
InitSkinGallery();
SuperMap.Data.Environment.IsSceneAntialias = true;
SuperMap.Data.Environment.SceneAntialiasValue = 4;
WorkspaceConnectionInfo info = new WorkspaceConnectionInfo(@"C:\Users\K550JK\Desktop\BJFU\BJFUcj.smwu");
mywokspace = new Workspace();
mywokspace.Open(info);
myscenecl = new SceneControl();
myscenecl.Dock = DockStyle.Fill;
splitContainerControl.Panel2.Controls.Add(myscenecl);
myscenecl.Scene.Workspace = mywokspace;
myscenecl.Action = Action3D.Pan;
myscenecl.Scene.Refresh();
Camera camera = myscenecl.Scene.Camera;
camera.Altitude = 135;
camera.Latitude = 39;
camera.Longitude = 111;
camera.Heading = 87.4579968695009;
camera.Tilt = 78.577494932720839;
myscenecl.Scene.Fly(camera, 5);
}