Tool reference

Select by Attribute

Selects features using an attribute condition

Key
SelectByAttributeTool
Name Type Description Default Options
Layer dropdown Layer to query — —
Field text Attribute field to query — —
Operator dropdown Attribute comparison equals equals, not equals, contains, starts with, ends with, greater than, less than, is empty, is not empty
Value text Value to compare — —
Selection Mode dropdown How to apply matching features replace replace, add, remove

State mode: layers · Mutates state: yes · Produces artifacts: no

Inputs
  • Layer → layer · Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon
Outputs
  • selection → update
{
  "key": "SelectByAttributeTool",
  "name": "Select by Attribute",
  "description": "Selects features using an attribute condition",
  "headlessSupported": true,
  "parameters": [
    {
      "name": "Layer",
      "description": "Layer to query",
      "type": "dropdown",
      "defaultValue": "",
      "required": true
    },
    {
      "name": "Field",
      "description": "Attribute field to query",
      "type": "text",
      "defaultValue": "",
      "required": true
    },
    {
      "name": "Operator",
      "description": "Attribute comparison",
      "type": "dropdown",
      "defaultValue": "equals",
      "options": [
        "equals",
        "not equals",
        "contains",
        "starts with",
        "ends with",
        "greater than",
        "less than",
        "is empty",
        "is not empty"
      ],
      "required": true
    },
    {
      "name": "Value",
      "description": "Value to compare",
      "type": "text",
      "defaultValue": ""
    },
    {
      "name": "Selection Mode",
      "description": "How to apply matching features",
      "type": "dropdown",
      "defaultValue": "replace",
      "options": [
        "replace",
        "add",
        "remove"
      ],
      "required": true
    }
  ],
  "execution": {
    "stateMode": "layers",
    "inputs": [
      {
        "parameter": "Layer",
        "kind": "layer",
        "geometryTypes": [
          "Point",
          "MultiPoint",
          "LineString",
          "MultiLineString",
          "Polygon",
          "MultiPolygon"
        ],
        "cardinality": "one",
        "selectionAware": false
      }
    ],
    "outputs": [
      {
        "kind": "selection",
        "operation": "update"
      }
    ],
    "mutatesState": true,
    "producesArtifacts": false
  }
}