I'm stuck on my problem subject again - Vector and Text processing, hope you can help.
This part is logical. Add text to a vector layer and write a script to show the text and the position. From what I can tell, the Characters key is the text and the Start key is the (X,Y) position.
So far no problem, click the text 1 pixel right and the Start[0] increases by 1. Same with 1 pixel down and Start[1] increases by 1.
Now for the crunch... Rotate the text and Start does not change (no matter how much you move the text).
By trial and error, I find that the Matrix key changes.
Now, Matrix has 9 values and from what I can tell Matrix[0], Matrix[1], Matrix[3] and Matrix[4] somehow relate to angle. Probably sin and cos of the angle from the x- and y- axis respectively.
Matrix [2] and Matrix[5] do increase linearly with shifts in x and y but here's where I need help.
How does this relate to the actual position of the text
You can see a more detailed description of the problem and my sample script here.
http://dl.dropbox.com/u/18869118/Articl ... /index.htm
Cheers
