{
  "id": "buffer",
  "label": "Buffer",
  "tagline": "Creates a zone at a set distance around a layer.",
  "status": "stable",
  "element": "webmapx-buffer-tool",
  "placement": "toolbar",
  "configType": "buffer",
  "demoConfig": "config/docs/tools/buffer.json",
  "configFragment": null,
  "source": [
    "src/components/webmapx-buffer-tool.ts"
  ],
  "tests": [
    "tests/geoprocessing.test.ts"
  ],
  "related": [
    "geoprocessing",
    "measure",
    "draw"
  ],
  "sections": {
    "what": "A buffer answers \"within how far?\" Examples: 500 m from a station, 50 m from a\nwatercourse, or 1 km from a route. Choose a layer and a distance. The result is\na new polygon layer.\n\nThe distance is on the **ground**, in metres, not in degrees, and not in screen\npixels. A degree of longitude is 111 km at the equator and 55 km at 60°N, so a\nbuffer measured in degrees would be a different size in every part of the map.\nThat would make the result wrong.\n\nThe result is an ordinary layer: it appears in the legend, it can be restyled,\nit can be exported, and it can be the input to the next thing you do.",
    "use": "1. Open the tool, choose the layer to buffer, and give a distance in metres.\n2. Calculate. The zone appears as a new layer on the map.\n3. Run it again to replace the previous result rather than piling up copies.\n\n**What goes in depends on how the layer is stored.** A GeoJSON layer contributes\nevery feature. A vector-tile layer contributes only what is drawn in the current\nview, at the current zoom, after filters. Zooming out and running it again can\ngive a different answer.\n\n**[Worked example](./analysis-single-layer.html#buffer)**: a buffer of five real\ncountries, generated by running the operation, so it shows the geometry and the\nattributes that actually come back.\n\nPoints, lines, and polygons all buffer, which is unusual. Most operations are\nfussier. The **[geometry matrix](./analysis-geometry.html#geometry-support)**\nrecords that combination by combination, each cell one real run.",
    "embed": "Add `buffer` to a toolbar. It works on whatever layers the map has.\n\nThe heavy lifting is GDAL compiled to WebAssembly, loaded on first use. A\nvisitor who never opens the tool never downloads it.",
    "extend": "Buffer uses the same spatial worker as Analysis. If you need more than a\ndistance, such as clip, overlay or dissolve, use Analysis. Buffer is also\navailable there."
  },
  "page": "https://webmapx.com/tools/buffer.html",
  "webmapxCommit": "f2fc89415cf002a297adc09a455e56df6bb447ff"
}
