Closed changlu12 closed 4 hours ago
@changlu12, please read the User Guide / Manual:
13.2.13.4. $area https://docs.qgis.org/3.34/en/docs/user_manual/expressions/functions_list.html#area
The area calculated by this function respects both the current project’s ellipsoid setting and area unit settings.
13.2.13.58. $length https://docs.qgis.org/3.34/en/docs/user_manual/expressions/functions_list.html#length
The length calculated by this function respects both the current project’s ellipsoid setting and distance unit settings.
Use the area
and length
function instead.
Feel free to reopen this issue report if you think you found an actual bug: in this case please describe the issue with more details.
What is the bug or the crash?
After reprojecting a layer in QGIS, the layer properties correctly display the units of the new coordinate system. However, when using the Field Calculator to calculate geometry, the calculations still use the units of the original coordinate system, resulting in incorrect outputs.
Steps to reproduce the issue
Versions
QGIS 3.38.3
Supported QGIS version
New profile
Additional context
No response