mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	- add accessors: geometry_n, interior_ring_n - add num_geometries, num_rings, num_interior_rings - add nodes_to_points for converting every node in a geometry to a multipoint geometry - add segments_to_lines for converting every segment in a geometry to a multiline geometry nodes_to_points and segments_to_lines are intended for use with geometry generator symbology, eg to allow use of m and z values for nodes/lines with data defined symbology.
		
			
				
	
	
		
			8 lines
		
	
	
		
			456 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			456 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
{
 | 
						|
  "name": "num_rings",
 | 
						|
  "type": "function",
 | 
						|
  "description": "Returns the number of rings (including exterior rings) in a polygon or geometry collection, or null if the input geometry is not a polygon or collection.",
 | 
						|
  "arguments": [ {"arg":"geometry","description":"input geometry"} ],
 | 
						|
  "examples": [ { "expression":"num_rings(geom_from_wkt('POLYGON((-1 -1, 4 0, 4 2, 0 2, -1 -1),(-0.1 -0.1, 0.4 0, 0.4 0.2, 0 0.2, -0.1 -0.1))'))", "returns":"2"}]
 | 
						|
}
 |