{
  "id": "turbine-spacing",
  "name": "Wind turbine spacing check (sample plugin)",
  "version": "1.0.0",
  "author": "WHT Technology",
  "builtin": true,
  "description": "Sample extension for developers: Checks the distance from every turbine to its nearest neighbour in rotor diameters and flags turbines closer than the minimum.",
  "entry": "/extensions/turbine-spacing/index.html",
  "permissions": [
    "gis.read",
    "gis.write",
    "ui.notify"
  ],
  "gis_tools": [
    {
      "id": "wtgspacing",
      "name": "Turbine spacing check",
      "cat": "Sample plugins",
      "desc": "Turbine points → nearest-neighbour distance in m and in rotor diameters (D), status and lines between turbines that are too close.",
      "params": [
        {
          "k": "layer",
          "label": "Turbine point layer",
          "type": "layer"
        },
        {
          "k": "rotor",
          "label": "Rotor diameter m",
          "type": "num",
          "def": 150
        },
        {
          "k": "mind",
          "label": "Minimum spacing (× D)",
          "type": "num",
          "def": 3
        }
      ]
    }
  ],
  "scope": "all"
}