Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
1006 B
Plaintext
Raw Normal View History

2018-12-11 15:43:51 +01:00
{
"name": "decode_uri",
"type": "function",
2020-07-02 01:46:48 +01:00
"groups": ["Map Layers"],
2018-12-18 14:20:11 +01:00
"description": "Takes a layer and decodes the uri of the underlying data provider. It depends on the dataprovider, which data is available.",
2022-01-13 08:56:17 -05:00
"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.",
"optional": true
}],
"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.gpkg'}"
}, {
"expression": "decode_uri(@layer, 'path')",
"returns": "'C:\\\\my_data\\\\qgis\\\\shape.shp'"
}],
"tags": ["depends", "layer", "data", "dataprovider", "provider", "uri", "underlying", "decodes", "available"]
2018-12-11 15:43:51 +01:00
}