<div dir="ltr"><div><br><br>On Thu, May 18, 2017 at 4:22 PM, James Duffy <<a href="mailto:james.philip.duffy@gmail.com">james.philip.duffy@gmail.com</a>> wrote:<br>><br>> Hello,<br>><br>> I'm trying to calculate the area of a polygon using v.to.db as follows (through R):<br>><br>> execGRASS("v.to.db", flags = c("p","quiet"), parameters = list(map = "test", units = "meters", option = "area", separator = "comma"),intern = TRUE)<br>><br>> I assume that the output of this command will be a meters squared calculation of the area inside the polygon 'test'.<br>><br>> However, in QGIS, I manually calculated the area the they do not match. QGIS (which I believe to be true) shows 0.128m2, and the output from v.to.db shows 22.42226m2.<br><br></div>This is a large difference. Is it possible that several polygons share the same category? In this case the entry in the attribute table is the sum of all polygons with that category.<br><div><br>><br>> I am working in WGS84.<br><br></div><div>GRASS uses geodesic distance and area calculation for latlon, I believe QGIS as well.<br><br></div><div>Markus M<br></div><div><br>><br>> Can anyone shed some light on how v.to.db calculates area and why it might be going wrong please?<br>><br>> Thank you<br>><br>> James<br>><br>><br>><br>> --<br>> James Duffy<br>> PhD Researcher<br>> Environment and Sustainability Institute<br>> Penryn Campus<br>> University of Exeter<br>> Penryn<br>> Cornwall<br>> TR10 9FE<br>><br>> _______________________________________________<br>> grass-user mailing list<br>> <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>> <a href="https://lists.osgeo.org/mailman/listinfo/grass-user">https://lists.osgeo.org/mailman/listinfo/grass-user</a><br><br></div></div>