{
  "$schema": "https://geolibre.app/schemas/model-graph-v1.json",
  "version": "1.0.0",
  "name": "DEM Stream Network Extraction",
  "graph": {
    "nodes": [
      {
        "id": "1df51968-4391-5570-a4eb-272cc206d33e",
        "kind": "input",
        "layerId": "sample-dem",
        "x": 40,
        "y": 40
      },
      {
        "id": "3518ec8c-6339-5f0b-a0ef-72a432cef692",
        "kind": "tool",
        "provider": "whitebox",
        "toolId": "fill_depressions_wang_and_liu",
        "parameters": {
          "fix_flats": true,
          "flat_increment": 0.0001
        },
        "x": 280,
        "y": 40
      },
      {
        "id": "c6288cc6-0156-5c38-a8fd-a647eee6622a",
        "kind": "tool",
        "provider": "whitebox",
        "toolId": "d8_pointer",
        "parameters": {
          "esri_pntr": false
        },
        "x": 520,
        "y": 40
      },
      {
        "id": "8991009b-eb96-5ee6-9af7-1dd160c3651a",
        "kind": "tool",
        "provider": "whitebox",
        "toolId": "d8_flow_accum",
        "parameters": {
          "clip": false,
          "esri_pntr": false,
          "input_is_pointer": true,
          "log_transform": false,
          "out_type": "cells"
        },
        "x": 280,
        "y": 160
      },
      {
        "id": "cc4640a1-b4aa-5748-84bc-5e8b7caffefd",
        "kind": "tool",
        "provider": "whitebox",
        "toolId": "extract_streams",
        "parameters": {
          "threshold": 1000,
          "zero_background": false
        },
        "x": 520,
        "y": 160
      },
      {
        "id": "d42a8090-ccf1-569a-9231-32c9689d28db",
        "kind": "tool",
        "provider": "whitebox",
        "toolId": "raster_streams_to_vector",
        "parameters": {
          "esri_pntr": false
        },
        "x": 760,
        "y": 40
      },
      {
        "id": "d5d8dcbd-b93f-5601-9a58-082ce69ee5e8",
        "kind": "output",
        "name": "Extracted Stream Network",
        "x": 1000,
        "y": 40
      }
    ],
    "edges": [
      {
        "id": "9d62bf2a-050d-53b1-8862-549bf792ab64",
        "from": "1df51968-4391-5570-a4eb-272cc206d33e",
        "fromPort": "out",
        "to": "3518ec8c-6339-5f0b-a0ef-72a432cef692",
        "toPort": "dem"
      },
      {
        "id": "4b89d7c0-28e1-5eb2-b875-1d29bdbd8374",
        "from": "3518ec8c-6339-5f0b-a0ef-72a432cef692",
        "fromPort": "output",
        "to": "c6288cc6-0156-5c38-a8fd-a647eee6622a",
        "toPort": "dem"
      },
      {
        "id": "b53d7d5e-a69c-5128-8eff-7f3f981542d3",
        "from": "c6288cc6-0156-5c38-a8fd-a647eee6622a",
        "fromPort": "output",
        "to": "8991009b-eb96-5ee6-9af7-1dd160c3651a",
        "toPort": "input"
      },
      {
        "id": "976fd253-e477-5702-af54-7aeccede0aa0",
        "from": "8991009b-eb96-5ee6-9af7-1dd160c3651a",
        "fromPort": "output",
        "to": "cc4640a1-b4aa-5748-84bc-5e8b7caffefd",
        "toPort": "flow_accumulation"
      },
      {
        "id": "ececdf74-0a42-5e51-9150-0cce07fcf606",
        "from": "c6288cc6-0156-5c38-a8fd-a647eee6622a",
        "fromPort": "output",
        "to": "d42a8090-ccf1-569a-9231-32c9689d28db",
        "toPort": "d8_pntr"
      },
      {
        "id": "4f6730ad-1128-5a54-be42-95fd4de173e3",
        "from": "cc4640a1-b4aa-5748-84bc-5e8b7caffefd",
        "fromPort": "output",
        "to": "d42a8090-ccf1-569a-9231-32c9689d28db",
        "toPort": "streams_raster"
      },
      {
        "id": "02ae493e-e699-5757-9544-e03917cc8e77",
        "from": "d42a8090-ccf1-569a-9231-32c9689d28db",
        "fromPort": "output",
        "to": "d5d8dcbd-b93f-5601-9a58-082ce69ee5e8",
        "toPort": "in"
      }
    ]
  }
}
