Skip to main content

GeoJSON node

Provide a fixed geometry value

The GeoJSON node represents geometry that describes a place or shape, e.g. an asset location, a site boundary.

Usage

This node is an input, so you can add it to the segments of these comparison nodes:

A Within node with two empty segments

Compatibility

This node fills one segment. The other must hold a Geometry Attribute.

NodeAccepted Value TypeNotes
AttributeGeometryUse the Pathfinder to choose an attribute, on the queried item or a linked item

Options

Select the node to access its options:

  • Delete - remove the node from the segment.
  • Parameter - select a compatible parameter to use as a placeholder. The value is provided when the query runs.

Alternatively, set the value directly:

  • Geometry - select one of the following:

The GeoJSON node's options, with Locations of interest and Set geometry fields

Example

Fetch all assets within this area.

In AQS terms:

Fetch items of the Assets interface where their Geometry attribute is within a defined area.

A Within node comparing the Geometry attribute to a drawn Polygon area
See JSON code

This code may reference designs, interfaces, attributes or items that don't exist in your company project.

{
"type": "Query",
"properties": {
"collectionCode": "Live",
"dodiCode": "designInterfaces_assets"
},
"children": [
{
"type": "GeomWithin",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_itemsGeometry"
}
},
{
"type": "Geometry",
"properties": {
"value": {
"type": "Polygon",
"coordinates": [
[
[-1.528451, 52.291276],
[-1.532371, 52.290544],
[-1.535095, 52.288647],
[-1.534088, 52.28752],
[-1.527428, 52.290062],
[-1.528451, 52.291276]
]
]
}
}
}
]
}
]
}