Video | Tableau | Data visualisation

Buffer lines or paths in Tableau | Buffer Linestring enhancement | New in tableau 2024.1

Tableau 2024.1 quietly lets you buffer line strings, not just points, so let's build distance zones around the London Marathon route.

Part ofWhat's new in Tableau 2024.1
Watch on YouTube
  • The 2024.1 buffer enhancement extends the existing function from working on geometry points to also working on line strings and polygons
  • The BUFFER function takes three arguments: the geometry, a numeric distance, and a unit in speech marks such as "m" for metres
  • You can connect to a GPX trace converted into a shapefile, but you must connect to the .shp file with all its constituent parts present
  • Stack multiple buffer calculations as map layers and reorder them in the marks pane so smaller zones sit on top of larger ones
  • Buffer distances are not pinpoint accurate due to background maths, but over marathon distances the distortion is negligible

Tableau 2024.1 extends the BUFFER function so it works on line strings and polygons, not just points, letting you draw distance zones around a route rather than just around individual locations.

Tim connects to a shapefile of the London Marathon route (converted from a GPX trace) to demonstrate the enhancement, aiming to build 100m, 500m and 1km zones around the course.

The Breakdown
  1. Enhancement, not a headline feature 0:00

    This buffer-on-lines capability isn't mentioned in Tableau's release marketing and Tableau itself classes it as an enhancement to the existing BUFFER function rather than a new feature — previously buffer only worked on geometry points, now it also works on line strings and polygons.

  2. Connect to a shapefile with a line string geometry 1:39

    You can bring in a GPS/GPX trace converted into a shapefile (or any line-based spatial file). You must connect to the .shp file specifically, but all the other constituent files need to be present alongside it for the connection to work; check the geometry column to confirm it's a line string.

  3. Plot the route 2:22

    Once connected, double-clicking the geometry field draws the line straight onto a map immediately — no extra setup needed before formatting.

  4. Format the base map 3:36

    Use background layers/map options to pick a cleaner base style, then adjust the route's colour and line size and wash out the map background so the route stands out.

  5. Write the BUFFER calculation 4:09

    Create a calculated field using BUFFER, which takes three arguments: the geometry field, a numeric distance, and a unit string in speech marks (e.g. "m" for metres). Tableau validates the calculation as you type, confirming it's ready to use.

  6. Duplicate for multiple zone distances 5:40

    Rather than writing each buffer calculation from scratch, duplicate the first one and change the distance and name for each new zone — Tim builds 100m, 500m and 1km versions this way.

  7. Layer zones in the correct stacking order 6:41

    Drag each buffer calculation onto the map as a layer in the marks pane. Because Tableau treats these as map layers, the order matters: reorder them so the largest zone sits at the bottom and progressively smaller zones sit on top, otherwise the larger buffers will cover the smaller ones and the route itself.

  8. Refine formatting and add interactivity 8:00

    Adjust colour and opacity per layer so the zones read clearly rather than overpowering the map, and consider adding parameters or actions afterwards to make the layered zones interactive.

Worth Knowing
  • The feature doesn't appear on Tableau's official release/feature pages — Tim only found it via a third-party blog post, so it's easy to miss in release notes.
  • Buffer distances rely on background maths and aren't pinpoint accurate, though the distortion is negligible at distances like a marathon route.
  • A shapefile connection needs all its constituent files present even though you only select the .shp file to connect.
Use It When

Reach for this when you need to define distance-based zones around a route, path or boundary — for event planning, safety perimeters, or service-area analysis — rather than just around single point locations.

How this Rollup was made provenance & method

A Rollup is drafted by AI from the video's transcript, then reviewed and edited by Tim. Everything used to produce this one is listed below — the model, the exact prompt, and the source video — so the process is transparent and reproducible.

Transcription
On-device — NVIDIA Parakeet v3 for recent videos, OpenAI Whisper large-v3 for earlier ones. The transcript never leaves the machine or gets published.
Drafting
Claude Sonnet 5 in the cloud, from that transcript.
Prompt
The exact Rollup prompt (v2) — the full system prompt, unedited.
Source video
Watch on YouTube
Drafted
5 July 2026 at 09:38
Reviewed & edited
5 July 2026 at 09:41 · by Tim Ngwena

Model + prompt + video is everything you'd need to recreate a Rollup like this yourself. The one thing we don't share is the transcript.

Rights. The video and its transcript are the property of TN Media Ltd. Unauthorised use or download is prohibited. © TN Media Ltd.