Online tutorial - www.smsgis.co.za/qgis-extract...
In this video we look at extracting the xy coorindate for a point file layer in decimal degrees and convert them to Degrees Minutes Seconds.
timestamps
0:00 - start
0:24 - online tutorial
0:44 - Open QGIS
0:57 - Create a new shapefile
2:08 - Defining the layer fields
3:40 - Quick Map Services Plugin
6:33 - Layer properties
7:02 - Symbology
7:30 - Labels
8:25 - Form Attributes (default x and y values)
9:11 - Digitizing new features
13:13 - Open attribute table
13:43 - Field Calculator
14:20 - Expression window DMS code
18:07 - Project Properties (Units display DMS)
19:32 - Lat Lon Tools
22:36 - Make a temporary lay permanent
QGIS - https:\\qgis.org
SMS - https:\\smsgis.co.za
code:
floor (abs($y))
|| '° ' || floor(((abs($y)) - floor (abs($y))) * 60)
||'\' '
|| substr( (tostring((((abs($y)) - floor (abs($y))) * 60) - floor(((abs($y)) - floor (abs($y))) * 60)) * 60),1,5)
|| '"'
|| (CASE WHEN $y *** 0 THEN ' S' ELSE ' N' END)
|| ' : '
|| floor (abs($x))
|| '° ' || floor(((abs($x)) - floor (abs($x))) * 60)
||'\' '
|| substr( (tostring((((abs($x)) - floor (abs($x))) * 60) - floor(((abs($x)) - floor (abs($x))) * 60)) * 60),1,5)
|| '"'
|| (CASE WHEN $x *** 0 THEN ' W' ELSE ' E' END)
*** replace with the "less than" sign
Негізгі бет QGIS - Extracting XY Coordinates as DMS
Пікірлер