MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




How to modify a Vertice ?

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 ...


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 03-09-2004
Junior Member
White Belt
 
Join Date: Mar 2004
Posts: 1
How to modify a Vertice ?

I try to change the value of one vertice and I found the way to do it but the polygone on the map is not update it. Here is a code sample:

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 ?
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
modify, vertice


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
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


All times are GMT -5. The time now is 03:40 AM.


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


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