Community of VE/MapPoint Users and Developers
This is a discussion on How to modify a Vertice ? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I try to change the value of one vertice and I found the way to do it but the polygone ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| How to modify a Vertice ? n = UBound(ObjMap.Shapes.Item(k).Vertices) 12 Set ObjMap.Shapes.Item(k).Vertices(0) = ObjMap.GetLocation(35.77777, -97.77777) For i = 0 To n latitude = 90# - 180# * ObjMap.Distance(locNorthPole, ObjMap.Shapes.Item(k).Vertices(i)) / dblHalfEarth d = ObjMap.Distance(ObjMap.GetLocation(latitude, 0), ObjMap.Shapes.Item(k).Vertices(i)) l = (latitude / 180) * Pi longitude = 180 * Arccos((Cos((d * 2 * Pi) / (2 * dblHalfEarth)) - Sin(l) * Sin(l)) / (Cos(l) * Cos(l))) / Pi If ObjMap.Distance(locSantaCruz, ObjMap.Shapes.Item(k).Vertices(i)) < dblQuarterEarth Then longitude = -longitude Debug.Print i & ": " & longitude & " / " & latitude Next i RESULT 0: -97.5123170983485 / 35.4353614413066 1: -97.5299636424534 / 35.4353614413066 2: -97.529868993098 / 35.4208178610457 3: -97.5122831335439 / 35.4208358271732 On line 12 I change the value of vertice(0) and VB don't give me error, but when I check the longitude and latitude values of the vertices, I still have the original value. I would like to know if someone know to change the value of the vertices with out deleting the shape and create a new one with the new value ? |
![]() |
| Tags |
| modify, vertice |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Is it possible to modify MapPoint context menus ? | Elbarto | MapPoint 2006/2009 Discussion | 4 | 03-03-2006 07:08 PM |
| EUR_CD.MAD, EUR_HD.MAD. How to modify EURDEMO.mdb | Anonymous | MapPoint 2006/2009 Discussion | 7 | 01-17-2005 10:03 AM |
| Can you modify a map on a web page? | kymmi13 | MapPoint 2006/2009 Discussion | 2 | 11-07-2003 02:04 AM |