Feature request #10170

Calculations should use the project's CRS, not the layer's

Added by Johannes Kroeger almost 3 years ago. Updated almost 3 years ago.

Status:Open Start Date:05/04/2014
Priority:Normal Due date:
Assigned to:- % Done:


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


I am not sure if this is a bug or a feature request. I searched for this issue without success. This might even be controversial.

I just spent too long wondering why Regular Points and Vector Grid gave me useless results. What happened is that they used WGS84 (and thus degrees for the units) while my project used an UTM zone (meters). I expected them to use meters as units, as that's what the project uses.

Steps to reproduce:
1. Have a layer in WGS84.
2. Set the Project CRS to something metric.
3. Use Regular Points or Vector Grid and use the unit fields as metric fields.
4. See the points or lines placed using WGS84's units.

I guess this would also affect other calculations.
As a user I would expect all unit-related functionality to be using the project's CRS, regardless of the CRS of the affected layer(s).

Related issues

related to QGIS Application - Feature request #2402: Field calculator can't fill fields with areas in units di... Closed
related to QGIS Application - Feature request #12939: make the field calculator compute areas and lengths in un... Closed 06/11/2015


Updated by J├╝rgen Fischer almost 3 years ago

  • Category set to Projection Support

Updated by Giovanni Manghi almost 3 years ago

  • Tracker changed from Bug report to Feature request
  • Target version set to Future Release - Nice to have
  • Platform deleted (Linux)
  • Platform version deleted (eacb5bd)

well... by design now calculations are done using layer CRS, so I guess this would be a feature request.

Also available in: Atom