How to programmatically set camera in order to display specific earth area

classic Classic list List threaded Threaded
1 message Options
Deschamps Christophe Deschamps Christophe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How to programmatically set camera in order to display specific earth area

Let's assume, for instance, that my display area is 600x400 and i want to see the earth area delimited by rectangle from Latitude1 to Tatitude2 and longitude1 to Longitude2.
How can i compute camera information (viewpoint i suppose) in order to display this full area in my display area with the maximum zoom level possible ?

I know how to center the camera, but i do not know how i can determine its altitude.

Thanks for your help.
Loading...