Skip to content
Back to skills

Road Subtract

ASecurity

Subtract OSM/Overture road, canal and rail buffers from parcels; fix gap-fill edge bleeding.

  • 8 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 19, 2026
ai-agents

Works with

  • cli

Security analysis

A100/100

Scanned September 19, 2026

npx -y skills add Adilmunawar/ZD-claude-plugin --skill road-subtract --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Road Subtract?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Road Subtract
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/adilmunawar-road-subtract/badge)](https://www.skillsdirectory.com/skills/adilmunawar-road-subtract)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: road-subtract
description: Subtract OSM/Overture road, canal and rail buffers from parcels; fix gap-fill edge bleeding.
---

# Road / canal subtraction

1. Fetch linework for the AOI bbox: OSM Overpass (`highway=*`, `waterway=canal|drain`, `railway=*`), or Overture `transportation` segments (parquet via DuckDB/`overturemaps` CLI). Cache to `data/ref/roads_<aoi>.gpkg`.
2. Buffer in UTM by class: motorway/trunk 12 m, primary 8 m, secondary/tertiary 5 m, track/unclassified 3 m, canal 6 m, rail 8 m. Make the table configurable.
3. `gdf.overlay(roads_buf, how='difference')` in tiles if > 50k parcels; then `explode` and drop pieces < 0.02 ha or thinness < 0.05 (road remnants).
4. Re-run `topology-repair`; report parcels touched, area removed (ha), pieces dropped.

Gap-fill edge bleeding: if the gap-fill was Voronoi-based, run road subtraction *after* Voronoi and clip Voronoi cells to a `unary_union(parcels).buffer(max_gap)` envelope so cells don't extend into non-field land.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…