mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			707 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			707 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
{
 | 
						|
  "name": "within",
 | 
						|
  "type": "function",
 | 
						|
  "groups": ["GeometryGroup"],
 | 
						|
  "description": "Tests whether a geometry is within another. Returns TRUE if the geometry1 is completely within geometry2.",
 | 
						|
  "arguments": [{
 | 
						|
    "arg": "geometry1",
 | 
						|
    "description": "a geometry"
 | 
						|
  }, {
 | 
						|
    "arg": "geometry2",
 | 
						|
    "description": "a geometry"
 | 
						|
  }],
 | 
						|
  "examples": [{
 | 
						|
    "expression": "within( geom_from_wkt( 'POINT( 0.5 0.5)' ), geom_from_wkt( 'POLYGON((0 0, 0 1, 1 1, 1 0, 0 0))' ) )",
 | 
						|
    "returns": "TRUE"
 | 
						|
  }, {
 | 
						|
    "expression": "within( geom_from_wkt( 'POINT( 5 5 )' ), geom_from_wkt( 'POLYGON((0 0, 0 1, 1 1, 1 0, 0 0 ))' ) )",
 | 
						|
    "returns": "FALSE"
 | 
						|
  }],
 | 
						|
  "tags": ["tests", "contains", "completely"]
 | 
						|
}
 |