Tool reference
Random Points
Adds random points within selected polygon
Parameters
| Name | Type | Description | Default | Options |
|---|---|---|---|---|
| Points Count | int | Number of random points to generate. | 10 | — |
| Inside Polygon | boolean | Generate points inside polygon | false | — |
| Polygon | dropdown | Polygon to add random points within. | — | — |
Inputs / Outputs / State behavior
State mode: layers · Mutates state: yes · Produces artifacts: no
Inputs
Polygon→ layer · Polygon, MultiPolygon
Outputs
- layer → add · Point
Spec JSON
{
"key": "RandomPointsTool",
"name": "Random Points",
"description": "Adds random points within selected polygon",
"headlessSupported": true,
"parameters": [
{
"name": "Points Count",
"description": "Number of random points to generate.",
"type": "int",
"defaultValue": 10,
"min": 1,
"required": true
},
{
"name": "Inside Polygon",
"description": "Generate points inside polygon",
"type": "boolean",
"defaultValue": false
},
{
"name": "Polygon",
"description": "Polygon to add random points within.",
"type": "dropdown",
"defaultValue": ""
}
],
"execution": {
"stateMode": "layers",
"inputs": [
{
"parameter": "Polygon",
"kind": "layer",
"geometryTypes": [
"Polygon",
"MultiPolygon"
],
"cardinality": "one",
"selectionAware": false,
"when": {
"parameter": "Inside Polygon",
"equals": true
}
}
],
"outputs": [
{
"kind": "layer",
"operation": "add",
"geometryType": "Point"
}
],
"mutatesState": true,
"producesArtifacts": false
}
}