mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-03 00:14:12 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			743 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			743 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
{
 | 
						|
  "name": "$length",
 | 
						|
  "type": "function",
 | 
						|
  "groups": ["GeometryGroup"],
 | 
						|
  "description": "Returns the length of a linestring. If you need the length of a border of a polygon, use $perimeter instead. The length calculated by this function respects both the current project's ellipsoid setting and distance unit settings. For example, if an ellipsoid has been set for the project then the calculated length will be ellipsoidal, and if no ellipsoid is set then the calculated length will be planimetric.",
 | 
						|
  "examples": [{
 | 
						|
    "expression": "$length",
 | 
						|
    "returns": "42.4711"
 | 
						|
  }],
 | 
						|
  "tags": ["distance", "planimetric", "length", "perimeter", "current", "linestring", "project", "settings", "ellipsoid", "border", "setting", "calculated"]
 | 
						|
}
 |