GeomIntersects
How to use the GeomIntersects operator
The GeomIntersects
operator returns the items for which the specified geometry attribute contains 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 intersects a specified polygon:
{
"type": "Query",
"properties": {
"dodiCode": "designs_exampleJobs",
"attributes": ["all"]
},
"children": [
{
"type": "GeomIntersects",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_jobsSiteLocation"
}
},
{
"type": "Geometry",
"properties": {
"value": {
"type": "Polygon",
"coordinates": [
[
[10, 12],
[12, 12],
[12, 10],
[10, 10]
]
]
}
}
}
]
}
]
}