add functions help

This commit is contained in:
Alexander Bruy 2025-02-07 11:26:47 +00:00 committed by Nyall Dawson
parent d285240375
commit f44bcc623a
3 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,5 @@
{
"name": "CRS",
"type": "group",
"description": "This group contains functions to operate on coordinate reference system objects."
}

View File

@ -0,0 +1,15 @@
{
"name": "crs_authid",
"type": "function",
"groups": ["CRS"],
"description": "Returns a user-friendly identifier for the CRS",
"arguments": [{
"arg": "crs",
"description": "crs value"
}],
"examples": [{
"expression": "crs_authid(make_crs('EPSG:3857'))",
"returns": "'EPSG:3857'"
}],
"tags": ["crs", "epsg", "authid"]
}

View File

@ -0,0 +1,15 @@
{
"name": "make_crs",
"type": "function",
"groups": ["CRS"],
"description": "Creates a coordinate reference system from a string definition",
"arguments": [{
"arg": "definition",
"description": "CRS definition"
}],
"examples": [{
"expression": "make_crs('EPSG:3857')",
"returns": "crs value 'EPSG:3857 - WGS 84 / Pseudo-Mercator'"
}],
"tags": ["crs", "epsg"]
}