MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth 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

Today's Posts Twitter Feed 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 02:24 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Bodrum Holiday
Check out the picturesque towns on your Bodrum holiday... Book through UlookUbook!



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 53 54 55 56 57 58 59