Function help improvements

This commit is contained in:
Matthias Kuhn 2018-12-18 14:18:43 +01:00
parent 65e60d17aa
commit d3a1285f63
No known key found for this signature in database
GPG Key ID: 7A7F1A1C90C3E6A7

View File

@ -5,8 +5,8 @@
"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'"}
{ "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'"}
]
}