MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Lat/Lons of the Corners of a Rectangle Object

This is a discussion on Lat/Lons of the Corners of a Rectangle Object within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I see it's easy to get the center lat/lon and the Height and Width of a rectangle object, but I ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 04-04-2008
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,384
Blog Entries: 1
Lat/Lons of the Corners of a Rectangle Object

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) or is there any easier way?

Eric
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 04-04-2008
Senior Member
Blue Belt
 
Join Date: Dec 2002
Posts: 242
Re: Lat/Lons of the Corners of a Rectangle Object

Hi Eric,

Hopefully, this will help ...
Find latitude and longitude of map corners with VBA

Mike Mattys
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 04-07-2008
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 850
Blog Entries: 7
Re: Lat/Lons of the Corners of a Rectangle Object

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
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 04-08-2008
Senior Member
Blue Belt
 
Join Date: Dec 2002
Posts: 242
Re: Lat/Lons of the Corners of a Rectangle Object

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?

Mike Mattys
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 04-08-2008
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,384
Blog Entries: 1
Re: Lat/Lons of the Corners of a Rectangle Object

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.. I'll let you know what we find out.

Eric
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 04-09-2008
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 850
Blog Entries: 7
Re: Lat/Lons of the Corners of a Rectangle Object

Mike: There's also a rotational affect with MapPoint's map display. It is greater when you zoom out a bit.


Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 04-09-2008
Senior Member
Blue Belt
 
Join Date: Dec 2002
Posts: 242
Re: Lat/Lons of the Corners of a Rectangle Object

Hi Richard,

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

Mike Mattys
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
corners, lat or lons, object, rectangle


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/lat-lons-corners-rectangle-object-7418.html

Posted By For Type Date
Programming MapPoint via .NET - MapPoint Articles - MP2K Magazine This thread Refback 04-08-2008 06:30 PM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Find latitude and longitude of map corners with VBA Well Development 2 05-22-2007 01:15 PM
How to draw a rectangle with text in it? VC_Man MapPoint 2006/2009 Discussion 2 12-12-2006 04:54 AM
how to calculate Lat/Longs for the corners of a rectangle? Anonymous MapPoint 2006/2009 Discussion 2 01-29-2005 04:18 AM
Values of area in rectangle Matrices MapPoint 2006/2009 Discussion 1 11-13-2003 12:16 PM
route object to drawing object Anonymous MapPoint 2006/2009 Discussion 1 05-09-2003 10:29 PM


All times are GMT -5. The time now is 06:36 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

Cheap flights Lanzarote
Lanzarote has plenty of sunshine and plenty of sand. The only piece missing is you! Holiday Hypermarket books cheap flights to Lanzarote.

Portugal Holidays
Find and book Portugal Holidays with Travel Counsellors. Holiday destinations around the world including Portugal.

Flights Canada
Our search results will show you a selection of airlines, travel agents and tour operators offering cheap flights to Canada. See for yourself who has the cheapest deals.

Holidays to Dominican Republic
Holidays to Dominican Republic offer a wealth of natural beauty and magnificent views. Come alive in the splendor of the Dominican Republic!

Cheap Cyprus Holidays
Finding cheap Cyprus holidays can be difficult unless you know where to look and where to book. With ulookubook.com you can conduct a simple search to find the latest holiday deals to your particular destination.

All inclusive holiday
Travel.co.uk is a travel comparison service which makes it easy to search and find your all inclusive holiday.

Goa Holidays
Enjoy the warm and sunny climate of Western India. Visit On The Beach for information on Goa holidays.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52