Skip to content

Commit

Permalink
Function help improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Dec 18, 2018
1 parent 7a89394 commit 2b5830e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/function_help/json/decode_uri
Expand Up @@ -3,10 +3,10 @@
"type": "function", "type": "function",
"description": "Takes a layer and decodes the uri of the underlying data provider. It depends on the dataprovider, which data is available.", "description": "Takes a layer and decodes the uri of the underlying data provider. It depends on the dataprovider, which data is available.",
"arguments": [ {"arg":"layer","description":"The layer for which the uri should be decoded."}, "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."} ], {"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'}"}, "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)", "returns":"{'layerId': NULL, 'layerName': 'layer', 'path': '/home/qgis/geopackage.gpkg'}"},
{ "expression":"decode_uri(@layer), 'path'", "returns":"'C:\my_data\qgis\shape.shp'"} { "expression":"decode_uri(@layer, 'path')", "returns":"'C:\my_data\qgis\shape.shp'"}
] ]
} }


0 comments on commit 2b5830e

Please sign in to comment.