Feature request #4252

different built-in tools calculate inconsistent polygon areas

Added by Alister Hood over 5 years ago. Updated about 1 year ago.

Status:Closed Start Date:09/01/2011
Priority:Normal Due date:
Assigned to:Magnus Homann % Done:

0%

Category:Projection Support
Target version:Future Release - Nice to have
Platform:All Resolution:
Platform version: Pull Request or Patch supplied:No
Status info: Tag:

Description

- When using the "measure area" tool, there is an "ellipsoidal" checkbox option. If this is unchecked, a slightly different area is reported, which I think I have seen called the "planimetric" area.
- The "Identify results" for polygons include a "Derived" area. This area is the "ellipsoidal" area.
- The field calculator can also report the area of a polygon. This area is always the "planimetric" area.

I think this behaviour should be tidied up:
- either ellipsoidal or planimetric (I'm not sure which one) measurements should be default everywhere.
- assuming both types of measurement are actually useful, then it should be possible everywhere to use either type. This could be done by a single global or project preference which controls the results for all three tools, or it could be implemented separately for each tool. I don't know which approach would be best.

Associated revisions

Revision ddbdcf8ab1196e859642b1083e43a1bcd2ae2e14
Added by Nyall Dawson about 1 year ago

Fix project unit confusion (pt 2): add project distance unit setting

Adds a new option in project properties to set the units used for
distance measurements. This setting defaults to the units set in
QGIS options, but can then be overridden for specific projects.

The setting is respected for length and perimeter calculations in:
- Attribute table field update bar
- Field calculator calculations
- Identify tool derived length and perimeter values
- Default unit shown in measure dialog

Also adds unit tests to ensure that length and perimeter calculated
by attribute table update bar, field calculator and identify tool
are consistent wrt ellipsoidal calculations and distance units.

(refs #13209, #12939, #2402, #4857, #4252)

Revision dfdcec89223d4167850c7ebbb0af1d65c21135f8
Added by Nyall Dawson about 1 year ago

Fix project unit confusion (pt 3): add area unit settings with a
ton of available area units (eg m2, km2, mi2, ft2, yd2, ha, ac,
etc)

Adds a new option in both the QGIS setting and project properties to
set the units used for area measurements. Just like the distance
setting, this defaults to the units set in QGIS options, but can
then be overridden for specific projects.

The setting is respected for area calculations in:
- Attribute table field update bar
- Field calculator calculations
- Identify tool derived length and perimeter values

Also adds unit tests to ensure that area calculated by attribute table
update bar, field calculator and identify tool are consistent wrt
ellipsoidal calculations and area units.

TODO: make measure tool respect area setting

(refs #13209, #4252 and fixes #12939, #2402, #4857)

Revision 479d90a5ceec1c1b658aa101702ecf855e534987
Added by Nyall Dawson about 1 year ago

Make measure tool respect project area unit setting

Also add unit tests for measure tool length and area measurement
to ensure they return the same results as field calculator
and identify tool

Refs #13209, #4252

Revision 4094bae960a8521eca6dfe281408ae2e9ad773be
Added by Nyall Dawson about 1 year ago

Respect project ellipsoid and unit settings in virtual fields

Fix #12622, #4252

History

Updated by Paolo Cavallini about 5 years ago

See also #4416 and #4628

Updated by Giovanni Manghi about 5 years ago

  • Target version set to Version 1.7.4

Updated by Alister Hood almost 5 years ago

Also see #3296 I think.

Updated by Giovanni Manghi almost 5 years ago

  • Target version changed from Version 1.7.4 to Version 2.0.0

Updated by Alister Hood over 4 years ago

Note that the "export geometry columns" feature in ftools is now capable of calculating ellipsoidal areas, so I guess people should be encouraged to use that tool. It is a lot slower though.

Updated by Magnus Homann over 4 years ago

  • Assigned to set to Magnus Homann

Updated by Magnus Homann over 4 years ago

All except field calculator should be consitent now. Work is ongoing.

Updated by Alister Hood over 4 years ago

Also see #2402 and possibly #3122

Updated by Pirmin Kalberer over 4 years ago

  • Target version changed from Version 2.0.0 to Future Release - Nice to have

Updated by Nyall Dawson about 1 year ago

  • Status changed from Open to Closed

Also available in: Atom