Community of VE/MapPoint 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 ...
| |||||||
| 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 |
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.