[Qgis-user] QGIS 3.10: Dimensioning with on-board equipment

Richard McDonnell richard.mcdonnell at opw.ie
Tue May 5 01:50:40 PDT 2020


Hi,
In my original response, I mentioned using round(100*( $length) ) || ' cm' which would give you the dimensions in centimetres only.
If you want meters only then remove the 100*, which would look like this round($length) || ' m'

Now if you want both dimensions shown, for example <-- 10.52m (1052cm) -->, then this can be achieved by using the following

round( $length) || ' m' || ' ( ' || round(100*( $length) ) || ' cm)'

Hope that helps!!
Regards,

Richard

——
Richard McDonnell MSc GIS, FME Certified Professional
FRM Data Management

——
Oifig na nOibreacha Poiblí
Office of Public Works

Sráid Jonathan Swift, Baile Átha Troim, Co na Mí, C15 NX36
Jonathan Swift Street, Trim, Co Meath, C15 NX36
——
M +353 87 688 5964 T +353 1 647 6543
https://www.opw.ie

——
To send me files larger than 30MB, please use the link below https://filetransfer.opw.ie/filedrop/richard.mcdonnell@opw.ie

Email Disclaimer: https://www.opw.ie/en/disclaimer/
From: Qgis-user <qgis-user-bounces at lists.osgeo.org> On Behalf Of hdienst47 at aol.com
Sent: 01 May 2020 17:15
To: qgis-user at lists.osgeo.org
Subject: Re: [Qgis-user] QGIS 3.10: Dimensioning with on-board equipment

Hi Richard,

As I had written to you on April 20, I have successfully implemented your proposal.

The only thing missing is an answer to my question:
How would I have to change the command to get a result in m.(,)cm (e.g. 10.52 m or 10,52 m) format?

Regards,

Hartmut

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20200505/229cf775/attachment.html>


More information about the Qgis-user mailing list