I have implemented WorldWind in my application. I need to get the visible portion of the globe so that I can find the Northeast and Southwest latitude and longitude coordinates of this visible part.
How do I get the boundaries of the visible part of the globe?
The question can be complicated. For example, if the horizon is visible, then your view is not bounded by four geodetic positions.
If you are in a method that provides a DrawContext, there is a convenience method for returning the visible sector:
If you don't have access to the DrawContext, but you can guarantee that all four corners of your view will intersect the globe, then you can use the following snippet from the worldwind forums: