I am trying to do the following:
I have 1 point (P1) a 1 rectangle polygon (R1).
both P1 and R1 is associated.
When I move R1 from 1 place to another (on the map using Editgeometry->Startedit()), P1 will get updated by the distance covered by R1.
P1 is in Longitude and Latitude.
For example:
I will use x,y coordinate for easy illusration
initally
-------
R1 - (3,4), (5,4), (3,2), (5,2)
P1 - (2,4)
I move R1 by (2,3) [move click and move on the map]
new position
--------------
R1 - (5,7), (7,7), (5,5), (7,5)
Since distance covered is random, I can only get the distance covered by the starting and ending point before I know the distance for the new P1 coordinates.
P1 - (4,7) [should be this coordinate after computing]