modaresimr / earth-api-samples

Automatically exported from code.google.com/p/earth-api-samples
1 stars 0 forks source link

Programmatic access to info (lat/lng/alt/etc.) for a give x,y pixel location in view #49

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The ability to query for any x,y pixel location in the current view the 
latitude, longitude, altitude, is on globe, etc. properties for that location. 

Requested by: Mark G.

Supported by: Pedro Melo

Original issue reported on code.google.com by api.roman.public@gmail.com on 12 Aug 2008 at 8:46

GoogleCodeExporter commented 8 years ago

Original comment by api.roman.public@gmail.com on 21 Aug 2008 at 12:31

GoogleCodeExporter commented 8 years ago
At least support something similar to the COM API's 
GetPointOnTerrainFromScreenCoords
method.  

Original comment by gf...@comcast.net on 6 Oct 2008 at 2:07

GoogleCodeExporter commented 8 years ago

Original comment by api.roman.public@gmail.com on 29 Oct 2008 at 6:44

GoogleCodeExporter commented 8 years ago
Perhaps this limitation could be solved within this issue:

The range in the following function:

ge.getView().copyAsLookAt(ge.ALTITUDE_RELATIVE_TO_GROUND).getRange() 

doesn't take into account 3D buildings. It would be great if each point of each 
3D
building could be an end point for getRange.

Original comment by beli...@gmail.com on 18 Feb 2009 at 12:10

GoogleCodeExporter commented 8 years ago
I totally agree with previous posts. This function (similar to COM
GetPointOnTerrainFromScreenCoords() function) is a "must have" to control 
navigation
with javascript code. Please, please, please... ;D
Best regards
Laurent

Original comment by lsa...@club-internet.fr on 9 Mar 2009 at 10:10

GoogleCodeExporter commented 8 years ago
This is now available as of 5.0.11655.6079 and API v1.002 as GEView.hitTest

See the release notes, new Google Earth Plugin 5.0 samples, and updated v1.002 
API
reference for more details.

http://code.google.com/apis/earth/documentation/releasenotes.html#2009-03-31
http://code.google.com/apis/earth/documentation/demogallery.html?topic=fiveoh
http://code.google.com/apis/earth/documentation/reference/index.html

Original comment by api.roman.public@gmail.com on 2 Apr 2009 at 12:07

GoogleCodeExporter commented 8 years ago
As of API v1.003, plugin 5.1.3509.4636 GEView.hitTest is returning incorrect 
results. 

Hit tests at each corner of the viewport returns results well outside of the 
viewing 
area.

See issue 361 for a code example.

Original comment by stuartpo...@gmail.com on 2 Nov 2009 at 9:42

GoogleCodeExporter commented 8 years ago
I also have this problem. The returned boundaries are not the corner of the 
view! 

Original comment by macarena...@hotmail.com on 9 Feb 2011 at 10:31

GoogleCodeExporter commented 8 years ago
Please see comments on Issue 361.

Original comment by bcke...@google.com on 15 Feb 2011 at 9:23