mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			721 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			721 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
{
 | 
						|
  "name": "geometry_n",
 | 
						|
  "type": "function",
 | 
						|
  "groups": ["GeometryGroup"],
 | 
						|
  "description": "Returns a specific geometry from a geometry collection, or NULL if the input geometry is not a collection. Also returns a part from a multipart geometry.",
 | 
						|
  "arguments": [{
 | 
						|
    "arg": "geometry",
 | 
						|
    "description": "geometry collection"
 | 
						|
  }, {
 | 
						|
    "arg": "index",
 | 
						|
    "description": "index of geometry to return, where 1 is the first geometry in the collection"
 | 
						|
  }],
 | 
						|
  "examples": [{
 | 
						|
    "expression": "geom_to_wkt(geometry_n(geom_from_wkt('GEOMETRYCOLLECTION(POINT(0 1), POINT(0 0), POINT(1 0), POINT(1 1))'),3))",
 | 
						|
    "returns": "'Point (1 0)'"
 | 
						|
  }],
 | 
						|
  "tags": ["part", "input", "multipart", "collection", "specific"]
 | 
						|
}
 |