mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			886 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			886 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
{
 | 
						|
  "name": "decode_uri",
 | 
						|
  "type": "function",
 | 
						|
  "groups": ["Map Layers"],
 | 
						|
  "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."},
 | 
						|
                 {"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'"}
 | 
						|
              ]
 | 
						|
}
 | 
						|
 |