Feature request #10170

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

Added by Johannes Kroeger about 3 years ago. Updated 28 days ago.

Status:Open
Priority:Normal
Assignee:-
Category:Projection Support
Pull Request or Patch supplied:No Resolution:
Easy fix?:No

Description

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

History

#1 Updated by Jürgen Fischer almost 3 years ago

  • Category set to Projection Support

#2 Updated by Giovanni Manghi almost 3 years ago

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

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

#3 Updated by Giovanni Manghi 28 days ago

  • Easy fix? set to No

Also available in: Atom PDF