<div dir="ltr"><div><div>Hi Tobias:<br><br>I understand your frustation (I've lived it), but QGIS doesn't lie, it is different from the way that some topics are done in another GIS.<br><br>You can get right metric values even if your layer and project are in Lat-long units. In your particular case, if your project and layer CRS is EPSG 4326, please try with this expression in field calculator:<br><br><div style="margin-left:40px">length(transform($geometry, 'EPSG:4326', 'EPSG:25832') )<br></div><br>If your project CRS is 25832 (on the the fly CRS enabled) but your layer is still EPSG 4326 or 25832, you can use:<br><br><div style="margin-left:40px"> length($geometry)<br></div><br></div><div>If your project CRS is 25832 (on th fly CRS disabled) and your layer is EPSG 25832, you can use:<br><br></div><div style="margin-left:40px">$length<br></div><div><br><br>Yes, it's something complicated, but it's the price for more liberty. With areas it's similar. Perhaps it's better don't use "$length" or "$area". I recomend "length" and "area" fuctions.<br><br>For difference beteween "$_function" and "function" see help for fuctions in field calculator<br><br></div><div>Best whishes from Perú.<br><br></div><div>Carlos Cerdán<br></div><div><br></div></div><div><div><br></div><div><br><br><br><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-05-25 5:47 GMT-05:00 Tobias Wendorff <span dir="ltr"><<a href="mailto:tobias.wendorff@tu-dortmund.de" target="_blank">tobias.wendorff@tu-dortmund.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi there!<br>
<br>
Yesterday, I gave an introductory workshop at University on<br>
how to download OSM-data off its website and work on it in QGIS.<br>
The students are in master's degree now and learned ArcGIS in<br>
their study runs only. So we have to make QGIS tasty to them.<br>
<br>
I've explained the students, how to switch to a metric projection<br>
(EPSG:25832) instead of the geographical one (EPSG:4326). Then<br>
we've filtered out shops<br>
<br>
Then the students should filter out all the shops in their hometown<br>
and calculate the airlining distance to their flat. I've used hub<br>
lines for this. The dialog informs about distance in meters.<br>
<br>
It's a lie. The resulting distance is in decimal degrees. So 600<br>
meters ere about 0.1 [whatever]. Of course, it's easy to calculate<br>
the real distance using "$length" in field calculator, but why?!<br>
<br>
QGIS functions should detect that coordinates are in geographic<br>
projections and should inform that the result isn't metric OR<br>
switch to a processing system, which gives metric results. There<br>
are many libraries, which can calculate VERY accurate and quick<br>
on ellipsoids. With less than 0.01 mm of errors.<br>
<br>
Most of us might be aware that's normal behavior in QGIS, but<br>
most of new users will not be aware that meters in GUI aren't<br>
meters and dataset.<br>
<br>
Best regards,<br>
Tobias<br>
<br>
______________________________<wbr>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a></blockquote></div><br></div>