Lat/Lons of the Corners of a Rectangle Object

Eric Frost
04-04-2008, 10:43 AM
I see it's easy to get the center lat/lon and the Height and Width of a rectangle object, but I also need to get the corner lat/lons. It doesn't look like the Vertices property will help because it is only for geoLine and geoFreeform objects..

Do I just need to do some great circle distance calculation to get the corner lat/lon's (I could probably figure it out from here: Aviation Formulary V1.43 (http://williams.best.vwh.net/avform.htm)) or is there any easier way?

Eric

Mattys Consulting
04-04-2008, 12:40 PM
Hi Eric,

Hopefully, this will help ...
http://www.mapforums.com/find-latitude-longitude-map-corners-vba-5886.html

Mike Mattys

Winwaed
04-07-2008, 09:14 AM
Just to complicate things, the rectangle is oriented relative to the screen - not the North Pole! So as the user pans the map, the rectangle corners will move.

As well as getting the locations and finding their coords, you can get the width & height of the rectangle, and extrapolate the edges & corners out. This would give a north pole oriented rectangle. Ie. it doesn't change, but it might not exactly match what the user sees.


Richard

Mattys Consulting
04-08-2008, 08:20 AM
Hi Richard,

Since the map itself is pointed northward at lower altitudes,
the corners will also point northward or negligably different.

Looking at the sphere from higher elevations, I don't see where
one could obtain any -rectangle- that has either eastern or western
corners that line up with the north pole. A rhombus, perhaps? :juggle2:

Mike Mattys

Eric Frost
04-08-2008, 10:51 AM
I guess it's best to try to use the Queryshape method when appropriate.. I wonder if it returns different results depending on the zoom level.. :furious3: I'll let you know what we find out.

Eric

Winwaed
04-09-2008, 07:56 AM
Mike: There's also a rotational affect with MapPoint's map display. It is greater when you zoom out a bit.


Richard

Mattys Consulting
04-09-2008, 08:50 AM
Hi Richard,

Yes, sir, there certainly is. :jester:
I wonder how this would look if the graticule sample was combined with
the spinning globe sample. I guess I'll try it! :3m::3m:

Mike Mattys

 
Web mp2kmag.com
mapforums.com