mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
- Expose default values of args - Fix args name or description - Fix/add more examples (to show various possibilities of a function or so that functions that relate have examples that relate)
18 lines
833 B
Plaintext
18 lines
833 B
Plaintext
{
|
||
"name": "to_dms",
|
||
"type": "function",
|
||
"groups": ["Conversions"],
|
||
"description": "Converts a coordinate to degree, minute, second.",
|
||
"arguments": [
|
||
{"arg":"coordinate","description":"A latitude or longitude value."},
|
||
{"arg":"axis","description":"The axis of the coordinate. Either 'x' or 'y'."},
|
||
{"arg":"precision", "description":"Number of decimals."},
|
||
{"arg":"formatting", "optional": true, "default":"", "description":"Designates the formatting type. Acceptable values are NULL (default), 'aligned' or 'suffix'."}
|
||
],
|
||
"examples": [
|
||
{ "expression":"to_dms(6.1545681, 'x', 3)", "returns":"6°9′16.445″"},
|
||
{ "expression":"to_dms(6.1545681, 'y', 4, 'aligned')", "returns":"6°09′16.4452″N"},
|
||
{ "expression":"to_dms(6.1545681, 'y', 4, 'suffix')", "returns":"6°9′16.4452″N"}
|
||
]
|
||
}
|