mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-16 00:03:12 -04:00
13 lines
831 B
Plaintext
13 lines
831 B
Plaintext
{
|
|
"name": "decode_uri",
|
|
"type": "function",
|
|
"description": "Takes a layer and decodes the uri of the undelying data provider. It depends on the dataprovider, which data is available.",
|
|
"arguments": [ {"arg":"layer","description":"The layer for which the uri should be decoded."},
|
|
{"arg":"part","description":"The part of the uri to return. If unspecified, a map with all uri parts will be returned."} ],
|
|
"examples": [ { "expression":"decode_uri(@layer)", "returns":"{'layerId': '0', 'layerName': '', 'path': '/home/qgis/shapefile.shp'}"},
|
|
{ "expression":"decode_uri(@layer)", "returns":"{'layerId': NULL, 'layerName': 'layer', 'path': '/home/qgis/geopackage.shp'}"},
|
|
{ "expression":"decode_uri(@layer), 'path'", "returns":"'/home/qgis/geopackage.shp'"}
|
|
]
|
|
}
|
|
|