Skip to content

Commit 2b5830e

Browse files
committedDec 18, 2018
Function help improvements
1 parent 7a89394 commit 2b5830e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎resources/function_help/json/decode_uri

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"type": "function",
44
"description": "Takes a layer and decodes the uri of the underlying data provider. It depends on the dataprovider, which data is available.",
55
"arguments": [ {"arg":"layer","description":"The layer for which the uri should be decoded."},
6-
{"arg":"part","description":"The part of the uri to return. If unspecified, a map with all uri parts will be returned."} ],
6+
{"arg":"part","description":"The part of the uri to return. If unspecified, a map with all uri parts will be returned.","optional":true} ],
77
"examples": [ { "expression":"decode_uri(@layer)", "returns":"{'layerId': '0', 'layerName': '', 'path': '/home/qgis/shapefile.shp'}"},
88
{ "expression":"decode_uri(@layer)", "returns":"{'layerId': NULL, 'layerName': 'layer', 'path': '/home/qgis/geopackage.gpkg'}"},
9-
{ "expression":"decode_uri(@layer), 'path'", "returns":"'C:\my_data\qgis\shape.shp'"}
9+
{ "expression":"decode_uri(@layer, 'path')", "returns":"'C:\my_data\qgis\shape.shp'"}
1010
]
1111
}
1212

0 commit comments

Comments
 (0)
Please sign in to comment.