SkylineGlobe系列软件:是一套成熟的三维地理信息服务平台。
用户可以利用航空和卫星影像、地形高程数据以及其他二、三维地理空间数据和属性数据,创建自定义的三维可视化场景,进行浏览、查询、分析和网络发布,并开放所有的API,无论是在网络环境还是单机应用,用户都能够根据自身的业务需求进行功能定制开发,建立个性化的三维地理信息系统。
2 < html xmlns ="http://www.w3.org/1999/xhtml" >
3 < head >
4 < title ></ title >
5 < script type ="text/javascript" language ="javascript" >
6 function Create3DPolygon() {
7 var sg = CreateSGObj();
8 sg.Command.Execute( 1012 , 17 );
9 }
10
11 function Test() {
12 try {
13 var sg = CreateSGObj();
14 sg.Project.Open( " F:\\test2.FLY " , 1 , "" , "" );
15 }
16 catch (e) {
17 alert(e);
18 }
19 }
20 /*
21 功能: 创建sgworld对象
22 备注: 赵贺 2011.04.01.
23 */
24
25 function CreateSGObj() {
26 var obj = $( " sgworld " );
27 if (obj == null ) {
28 obj = document.createElement( ' object ' );
29 document.body.appendChild(obj);
30 obj.name = " sgworld " ;
31 obj.id = " sgworld " ;
32 obj.classid = " CLSID:3a4f91b1-65a8-11d5-85c1-0001023952c1 " ;
33 }
34 return obj;
35 }
36 function $(id) {
37 return window.document.getElementById(id);
38 }
39 </ script >
40 </ head >
41 < body onload ="Test()" >
42 < input id ="Button1" type ="button" value ="创建对象" onclick ="Create3DPolygon()" />
43 < object id ="TE3DWindow" classid ="CLSID:3a4f9192-65a8-11d5-85c1-0001023952c1" width ="500px"
44 height ="500px" >
45 </ object >
46 </ body >
47 </ html >
在web页面中嵌入下面对象代码,即可完成对Skyline提供的ActiveX组件的引用:
三维场景:<OBJECT ID="TerraExplorer3DWindow" CLASSID="CLSID:3a4f9192-65a8-11d5-85c1-0001023952c1" ></OBJECT>
信息树:<OBJECT ID="TerraExplorerInformationWindow" CLASSID="CLSID:3a4f9193-65a8-11d5-85c1-0001023952c1" ></OBJECT>
导航图:<OBJECT ID="TerraExplorerNavigationMap" CLASSID="CLSID:3a4f9194-65a8-11d5-85c1-0001023952c1" ></OBJECT>
三维场景扩展:<OBJECT ID="TerraExplorer3DWindowEx" CLASSID="CLSID:3a4f9196-65a8-11d5-85c1-0001023952c1" ></OBJECT>
SGWorld对象:< OBJECT ID ="SGWorld61" classid="CLSID: 3a4f91b1-65a8-11d5-85c1-0001023952c1" ></ OBJECT >