- Messages
- 211
- Country
Hi,
I need help to find coordinates of the 4 points of a Generic building.
A Line extracted with agn2txt is writed like this:
Genericbuilding X Y X' Y' X'' Y''
The coordinate of point1 is easy to find: X1=X and Y1=Y
The coordinate of point3 seems to be: X3=X1+X'' and Y3=Y1+Y''
The coordinate of point4 seems to be: X4=X2+X'' and Y4=Y2+Y''
But I'm not sure of method to find coordinate of point2(X2,Y2) !? Are X' and Y' Vector coordinate between point1 and point2 or X/Y offset ? So what is the formule to apply to find X2 and Y2 ?
X2=X1+X' ? And Y2=Y1+Y' ? Or I'm wrong ?
When I play before with those value and I compare result with Annotator, I remember that I found a factor between X' and X'' but I'm not sure and I haven't the code front of me... And In fact I've never well understanded those X' and Y' param.
I need help to find coordinates of the 4 points of a Generic building.
A Line extracted with agn2txt is writed like this:
Genericbuilding X Y X' Y' X'' Y''
The coordinate of point1 is easy to find: X1=X and Y1=Y
The coordinate of point3 seems to be: X3=X1+X'' and Y3=Y1+Y''
The coordinate of point4 seems to be: X4=X2+X'' and Y4=Y2+Y''
But I'm not sure of method to find coordinate of point2(X2,Y2) !? Are X' and Y' Vector coordinate between point1 and point2 or X/Y offset ? So what is the formule to apply to find X2 and Y2 ?
X2=X1+X' ? And Y2=Y1+Y' ? Or I'm wrong ?
When I play before with those value and I compare result with Annotator, I remember that I found a factor between X' and X'' but I'm not sure and I haven't the code front of me... And In fact I've never well understanded those X' and Y' param.
Last edited: