6,721
社区成员
发帖
与我相关
我的任务
分享
ApplicationGEClass GeApp = new ApplicationGEClass();
System.Threading.Thread.Sleep(10000);//等待GoogleEarth启动。
if (GeApp.IsOnline() != 0){
GeApp.OpenKmlFile("D://test.kml", 1);
}
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<Placemark>
<name>Stonehenge, England</name>
<description>Stonehenge was built around 2500BC</description>
<Point>
<coordinates>-1.826752,51.179045,0 </coordinates>
</Point>
</Placemark>
</kml>