Questions tagged «calculator»

2
如何使用QGIS字段计算器以度分秒(DMS)为单位获取纬度/经度?
我想出了以下表达式,可将5.1234转换为5°7`24.24“ toint($ x)|| '°'|| toint(((($ x)-toint($ x))* 60)||'`'|| substr((tostring(((((($ x))-toint($ x))* 60)-toint(((($ x)-toint($ x))* 60))* 60),1,5)|| “” 问题是:对于5.1234之类的某些点,它可以工作。但是对于其他人却不是。我怀疑问题在于整数转换会舍入小数位数而不是将其截断。 还有其他选择吗?谢谢。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.