2011-08-26 30 views

回答

0

我認爲你可以通過命中測試來實現這一點 - GEHitTestModeEnumGEPlugin.HIT_TEST_BUILDINGS可能適合你的需求 - 雖然現實世界中的實際精度可能不夠高。計算機器人周圍的「緩衝區」將是最好的選擇。

這裏是GEView命中測試文檔

https://developers.google.com/earth/documentation/reference/interface_g_e_view#a8e8274c1236b6bbeff60a7a74e15995c

這裏是一個工作命中測試的例子。

http://earth-api-samples.googlecode.com/svn/trunk/examples/hittest.html