<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div>Hello list,<br><br></div>I have two vectors (A and B), both of which are polygons of different sizes. They overlap each other, but not fully. I wish to calculate the area of each polygon (in meters) and perform the following:<br><br></div>(A - B) / A<br><br></div>Currently I think I can do this with the following:<br><br></div>1) Create a difference polygon with `v.overlay`.<br></div>2) Calculate the area of the difference polygon with `v.to.db`.<br></div>3) Calculate the area of polygon A with `v.to.db`.<br></div>4) Access attribute tables of both polygons to perform the calculation with ???<br><br></div>I have two questions:<br><br></div>1) Is there a more efficient way to do this? Is there some sort of vector algebra available in GRASS. <br></div>2) Do the area values have to be stored in an attribute table? Can they be written to a text file alongside an ID of the vector?<br><br></div>Any help would be much appreciated.<br><br></div>Thank you<br><br></div>James<br><div><div><div><div><div><div><div><div><div><div><div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div>