GeomWithin
How to use conditional operator GeomWithin
GeomWithin
The Geomwithin
operator returns the items for which the geometry attribute specified is within the provided geometry (GeoJSON Specifications).
Allowed Children
Attributes nodes of type geometry and Geometry nodes
Requirements
Must have 2 children of geometry
type, one on the item and one as a primitive.
Return Type
Item Ids Set
Example: Simple polygon query
Find items with a geometry (attribute) that are within a specified polygon.
{
"type": "Query",
"properties": {
"dodiCode": "designs_exampleJobs",
"attributes": ["all"]
},
"children": [
{
"type": "GeomWithin",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_jobsSiteLocation"
}
},
{
"type": "Geometry",
"properties": {
"value": {
"type": "Polygon",
"coordinates": [[[10, 12], [12, 12], [12, 10], [10, 10]]]
}
}
}
]
}
]
}