1
You should use the to_dms expression.
to_dms($x, 'x', 3)
If your geometry is not in EPSG:4326, reproject it on the fly, like this:
to_dms(x(transform($geometry,'EPSG:2154','EPSG:4326')), 'x', 3)
Source : http://changelog.qgis.org/en/qgis/version/3.4-LTR/#map-expressions
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
degrees-minutes-seconds × 30qgis × 6
arcgis-desktop × 6
coordinate-system × 6
convert × 6
latitude-longitude × 6
coordinates × 4
field-calculator × 3
python-parser × 3
openlayers × 2
wgs84 × 2
expression × 2
decimal-points × 2
python × 1
raster × 1
arcmap × 1
arcgis-10.0 × 1
arcgis-10.2 × 1
javascript × 1
qgis-3 × 1
labeling × 1
data × 1
sql × 1
geometry × 1
distance × 1