https://issues.qgis.org/https://issues.qgis.org/favicon.ico2006-10-18T10:47:04ZQGIS Issue TrackingQGIS Application - Bug report #301: derived area is calculated wronghttps://issues.qgis.org/issues/301?journal_id=137312006-10-18T10:47:04ZGavin Macaulay -gavin@macaulay.co.nz
<ul></ul><p>The link in the above ticket should be:</p>
<p><a class="external" href="http://lists.qgis.org/pipermail/qgis-developer/2006-August/000599.html">http://lists.qgis.org/pipermail/qgis-developer/2006-August/000599.html</a></p> QGIS Application - Bug report #301: derived area is calculated wronghttps://issues.qgis.org/issues/301?journal_id=137322006-12-03T16:29:14ZMartin Dobiaswonder.sk@gmail.com
<ul></ul><p>Calculated area of a feature depends on the ellipsoid set in QGIS options. However also after setting ellipsoid 1866 the calculated area isn't correct. Needs further investigation.</p>
<p>Please could you give some other examples with incorrectly calculated area? Preferably simple features - e.g. rectangle. Does it calculate area correctly for layer with unprojected coordinates?</p>
<p>The code for calculating the area has been borrowed from GRASS, thus teoretically they should give the same results.</p>
<p>Do you know any utility that could help to check whether the area is correct? E.g. how to do it in grass?</p> QGIS Application - Bug report #301: derived area is calculated wronghttps://issues.qgis.org/issues/301?journal_id=137332006-12-04T11:08:56ZRedmine Admin
<ul></ul><p>Replying to [comment:2 wonder]:</p>
<blockquote>
<p>The code for calculating the area has been borrowed from GRASS, thus teoretically they should<br />give the same results.</p>
<p>Do you know any utility that could help to check whether the area is correct? E.g. how to do it<br />in grass?</p>
</blockquote>
<p>Grab a GRASS location (the database that GRASS works on): [<a class="external" href="http://grass.itc.it/sampledata/spearfish_grass60data-0.3.tar.gz">http://grass.itc.it/sampledata/spearfish_grass60data-0.3.tar.gz</a>]</p>
<p>1. install GRASS; you don't need the latest and gratest - anything above 6.0 will do</p>
<p>2. run GRASS</p>
<p>3. for DATABASE, enter the path to the directory where you unpacked the spearfish location; put "spearfish60" for LOCATION and "PERMANENT" for MAPSET</p>
#set the region of interest<br />4. g.region vect=your_vector_map
<ol>
<li>spawn a display<br />5. d.mon x0</li>
<li>display vector<br />6. d.vect your_vector_map</li>
<li>query it<br />7. d.what.vect -x ; l-click the polygon</li>
</ol>
<p>The area of the of polygon is printed to the terminal.</p>
<p>You can create any new vector polygon with v.digit or QGIS GRASS edit.</p>
<p>v.digit:</p>
<p>1. v.digit -n map_name<br />2. (GUI pops up) draw a boundary and a single centroid inside<br />3. exit v.digit; the vector is written - display it, query</p>
<p>QGIS GRASS edit:<br />1. GRASS plugin > Open mapset <br />2. GRASS plugin > Create new GRASS vector<br />3. draw a boundary and centroid inside</p>
<p>Make sure the boundary starting and ending nodes are snapped. Remember that GRASS polygon ("area" in GRASS lingo) is made of a boundary and centroid.</p>
<p>Cheers,<br />Maciek</p> QGIS Application - Bug report #301: derived area is calculated wronghttps://issues.qgis.org/issues/301?journal_id=137342006-12-04T16:21:27ZMartin Dobiaswonder.sk@gmail.com
<ul></ul><p>Thanks for the instructions, I'll try to do some investigation on this.</p> QGIS Application - Bug report #301: derived area is calculated wronghttps://issues.qgis.org/issues/301?journal_id=137352006-12-29T11:36:35ZGary Shermansherman@mrcc.com
<ul></ul><p>Moved to 0.8.1</p> QGIS Application - Bug report #301: derived area is calculated wronghttps://issues.qgis.org/issues/301?journal_id=137362006-12-30T03:45:04Zmaris-gis-gmail-com -maris.gis@gmail.com
<ul></ul><p>Same applys to lenght measurements in 0.8.0 on Linux. <br />I loaded Spearfish roads as shapefile (from GRASS export). Projection was set automaticly to one exported from GRASS (looked OK). Measured single road length with "Measure length" tool. Looked OK (~860m), but "Identify" tool shoved only 0.040 km.</p> QGIS Application - Bug report #301: derived area is calculated wronghttps://issues.qgis.org/issues/301?journal_id=137372007-01-27T10:56:32ZMagnus Homann
<ul></ul><p>Measurements have changed a bit in trunk. I don't think it makes any difference, bu it's worth a check. I'm not GRASS-savy myself.</p> QGIS Application - Bug report #301: derived area is calculated wronghttps://issues.qgis.org/issues/301?journal_id=137382007-02-05T04:16:34ZMagnus Homann
<ul></ul><p>Length measurment errror should be fixed in trunk now ().</p> QGIS Application - Bug report #301: derived area is calculated wronghttps://issues.qgis.org/issues/301?journal_id=137392007-02-05T04:59:00ZMagnus Homann
<ul></ul><p>Downloaded the full_circle.shp and tested it in trunk . With projections off, the areas were close enough (> 10 digits). With projections on, the error was as reported (less than 0.1%)</p> QGIS Application - Bug report #301: derived area is calculated wronghttps://issues.qgis.org/issues/301?journal_id=137402007-02-05T06:13:05ZMagnus Homann
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>In Progress</i></li></ul><p>OK, I looked a bit at GRASS. You can calculate the area either as planimetric or ellipsoidal. In qgis 0.9, planimetric is selected when projectin is off, else it is ellipsoidal. The ellips is taken from the global Options-> Projections dialog.</p>
<p>If the reported value from GRASS was in fact the planimetric area, it reports the same as qgis does.<br />I will investigate this further if someone can report the planimetric and ellipsodial areas of the full_circle.shp (given the relevant NAD27 projection). Until then I put it as fixed in 0.9, but I'm glad to reopen it.</p>
<p>(*) Why not from canvas projection ?</p> QGIS Application - Bug report #301: derived area is calculated wronghttps://issues.qgis.org/issues/301?journal_id=137412007-02-05T06:13:42ZMagnus Homann
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>fixed</i></li></ul> QGIS Application - Bug report #301: derived area is calculated wronghttps://issues.qgis.org/issues/301?journal_id=137422007-02-05T08:35:33ZMagnus Homann
<ul></ul><p>With <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/df2b8b28036a4f55f939e716c954644b82163768" title="Added planimetric measurement as an option, and made all areas positive. git-svn-id: http://svn....">df2b8b28</a> (SVN r6535), planimetric measurements are available as an option (for 0.9)</p> QGIS Application - Bug report #301: derived area is calculated wronghttps://issues.qgis.org/issues/301?journal_id=137432009-08-21T22:45:00ZAnonymous
<ul></ul><p>Milestone Version 0.9 deleted</p>