MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




How to get the Locations for the 4 vertices of a Square?

This is a discussion on How to get the Locations for the 4 vertices of a Square? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, I have created a square (Autoshape object) with the length of 2 kilometers, the location of the center point ...


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 Thread Tools Display Modes
  #1 (permalink)  
Old 10-26-2004
Junior Member
White Belt
 
Join Date: Oct 2004
Posts: 1
How to get the Locations for the 4 vertices of a Square?

Hi,

I have created a square (Autoshape object) with the length of 2 kilometers, the location of the center point is known, how do I get the locations of its 4 vertices in MapPoint?

I used "curShape.Vertices.GetLength(0)" the same function for a Polygon (Freeform object), the code crashed for the "AutoShape" square.

I saw some author used:

'These calculations are customized for Minnesota.....
'------------------------------------------------------------------------
'A degree of latitude is always about 69 miles. Using 1/68th of a degree
'per mile ensures that the rectangle is slightly larger than the radius
'we are looking for.
dbLatNorth = dbLatitude + (CDbl(txtTolerance.Text) / CDbl(68))
dbLatSouth = dbLatitude - (CDbl(txtTolerance.Text) / CDbl(68))
'Near Minnesota's northern border 1 degree of longitude is a bit more than
'44 miles. It is about 50 miles at the southern border. Using 1/44th of a
'degree per mile again ensures that we capture all points that are close.
dbLongEast = dbLongitude + (CDbl(txtTolerance.Text) / CDbl(44))
dbLongWest = dbLongitude - (CDbl(txtTolerance.Text) / CDbl(44))


How many miles are equal to 1 degree of longitude or 1 degree of latitude for Toronto, Ontario, Canada? How do I find out this information?

Need help and thanks in advance.

Chun
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
locations, square, vertices


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
Displaying a WayPoint without showing the default square BobFromBoston MapPoint 2006/2009 Discussion 2 04-20-2006 09:33 PM
Strange behaviour with square brackets. fergdeff MapPoint 2006/2009 Discussion 4 01-07-2006 03:27 AM
Vertices and VB.Net alon MapPoint 2006/2009 Discussion 2 08-26-2004 02:12 AM
How to determine the length of Shape.vertices in Delphi? schuchhardp MapPoint 2006/2009 Discussion 0 12-13-2002 04:45 AM
Zip codes or cities vertices or shapes Claude VERDIER MapPoint 2006/2009 Discussion 2 09-17-2002 05:21 AM


All times are GMT -5. The time now is 07:14 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

Amsterdam Flights
Use Holiday Hypermarket to check out the availability of cheap Amsterdam flights. It is a stunning city with much to offer. Don't miss the Van Gogh museum...

Travel Counselors
Travel Counselors are an award winning Travel Agent. Why not have a personal Travel Counselor help with your travel plans.

Turkey Holidays
Istanbul is Turkey's prime attraction as it has the most beautiful mosques and palaces of the country; it has Byzantine churches and Roman temples. Book Turkey Holidays online.

Holidays to Bahamas
Choose from a number of extraordinary holidays to the Bahamas at The Holiday Place. See pictures of these beautiful islands online.

Egypt
In Egypt you find an ancient city buzzing with life. There is an abundance of historical sites to see, not just the pyramids. The Opera House is certainly worth a visit and you can enjoy some open-air theatre too.

Holiday Comparison
We can help you with holiday comparison when you check out the options at Travel.co.uk

Cheap Holidays to Gran Canaria
Book a flight to the Canary Islands! View information on cheap holidays to Gran Canaria online at On The Beach.


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