Bug report #12622

In virtual fields $area function computes always values using "None/planimetric" ellipsoid

Added by Maxim Broos almost 2 years ago. Updated about 1 year ago.

Status:Closed Start Date:04/21/2015
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:Field calculator
Target version:-
Platform: Pull Request or Patch supplied:No
Platform version: Affected version:master
Status info: Causes crash or corruption:No
Resolution: Tag:

Description

New description:

in QGIS master area calculations seems to be (finally) sorted out/fixed. Anyway it seems that when computing $area in Virtual Fields then the None/planimetric" option for the ellipsoid regardless what the one is configured in the project properties.


Old description:

After doing some reading, i think i will file this problem as an issue:

I have a new shapefile layer in CRS 3857, in a project that has the same CRS. Under project properties, the measure tool is on ellipsoid WGS 84.

When i use the normal field calculator to create a new field for the layer and use the function "$area", the fields get filled with the correct values.

Now when i use the field calculator to add a virtual field with the function "$area", the values in the field represent the area value of the features calculated without ellipsoid (None/Planimetric).

I suppose it's similar or related to issue #12057


Related issues

related to QGIS Application - Bug report #12057: Computed area is wrong when reprojection is active Closed 01/26/2015
related to QGIS Application - Bug report #14082: area calculation in Field Calculator is depending on Outp... Open 01/10/2016

Associated revisions

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 Giovanni Manghi almost 2 years ago

  • Status changed from Open to Feedback

I "cannot" confirm, in the sense that here (qgis master) the area values computed with OTFR are completely bogus as per #12057

Updated by Giovanni Manghi almost 2 years ago

  • Target version changed from Version 2.8.1 to Version 2.8.2

Updated by J├╝rgen Fischer almost 2 years ago

  • Target version changed from Version 2.8.2 to Future Release - High Priority

Updated by Giovanni Manghi over 1 year ago

  • Subject changed from Virtual field $area function not using same Ellipsoid setting as normal field Calculator to In virtual fields $area function computes always values using "None/planimetric" ellipsoid
  • Status changed from Feedback to Open
  • Target version deleted (Future Release - High Priority)
  • Affected version changed from 2.8.1 to master

Updated by Nyall Dawson about 1 year ago

  • Status changed from Open to Closed

Also available in: Atom