Community of MapPoint and Virtual Earth Users and Developers
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 ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| How to get the Locations for the 4 vertices of a Square? 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 |
![]() |
| Tags |
| locations, square, vertices |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| 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 |
Bodrum Holiday
Check out the picturesque towns on your Bodrum holiday... Book through UlookUbook!