Harrissou Sant-anna 3846b04f0a Harmonize geometry-based parameters name in expression
using 'geometry1' instead of 'geometry_a' or 'geometry a'
2020-08-15 11:51:04 +10:00

12 lines
628 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"}
]
}