mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			905 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			905 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
{
 | 
						|
  "name": "is_empty_or_null",
 | 
						|
  "type": "function",
 | 
						|
  "groups": ["GeometryGroup"],
 | 
						|
  "description": "Returns TRUE if a geometry is NULL or empty (without coordinates) or false otherwise. This function is like the expression '@geometry IS NULL or is_empty(@geometry)'",
 | 
						|
  "arguments": [{
 | 
						|
    "arg": "geometry",
 | 
						|
    "description": "a geometry"
 | 
						|
  }],
 | 
						|
  "examples": [{
 | 
						|
    "expression": "is_empty_or_null(NULL)",
 | 
						|
    "returns": "TRUE"
 | 
						|
  }, {
 | 
						|
    "expression": "is_empty_or_null(geom_from_wkt('LINESTRING(0 0, 1 1, 2 2)'))",
 | 
						|
    "returns": "FALSE"
 | 
						|
  }, {
 | 
						|
    "expression": "is_empty_or_null(geom_from_wkt('LINESTRING EMPTY'))",
 | 
						|
    "returns": "TRUE"
 | 
						|
  }, {
 | 
						|
    "expression": "is_empty_or_null(geom_from_wkt('POINT(7 4)'))",
 | 
						|
    "returns": "FALSE"
 | 
						|
  }, {
 | 
						|
    "expression": "is_empty_or_null(geom_from_wkt('POINT EMPTY'))",
 | 
						|
    "returns": "TRUE"
 | 
						|
  }],
 | 
						|
  "tags": ["empty", "is_empty", "coordinates", "false"]
 | 
						|
}
 |