/zd-vector:raster-to-polygonsfrom Zaraat Dost · Vector
Performs RAM-safe raster-to-polygon conversion for large rasters using tiling with overlap, connected-components labeling, seam merging, min-area filtering, and crash-resume via progress checkpoints.
Ships in Zaraat Dost · Vector. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Pattern (Python / rasterio / shapely / geopandas):
rasterio.windows.Window.scipy.ndimage.label or cv2.connectedComponents → rasterio.features.shapes(mask, transform=window_transform) → shapely polygons with class id.gpd.to_parquet) — never accumulate in a Python list.gdf.dissolve(by='class') is too slow at scale → instead union only polygons touching tile borders: select features whose bounds intersect a seam buffer, unary_union those, replace, keep the rest.< min_area_ha (compute area in UTM), drop slivers (area/perimeter² ratio < 0.01).make_valid, cast to MultiPolygon, write GeoPackage; then topology-repair.For boundary (edge) masks: invert and flood-fill (cv2.floodFill / ndimage.label on ~boundary) to get parcel interiors, then polygonise interiors — not the boundary lines. Thin boundaries first (skimage.morphology.skeletonize) only if edges are >3 px thick.
Checkpoint: write a progress.json with the last completed tile index so a crashed run resumes.
Reference implementation: scripts/raster_to_polygons.py in this plugin (python "${CLAUDE_PLUGIN_ROOT}/scripts/raster_to_polygons.py" --help).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub adilmunawar/zd-claude-plugin --plugin zd-vector5 skills in this plugin
/gap-analysisCompare a mapped parcel layer with an AOI or previous version: missing layer, coverage summary, added/removed/changed parcels./road-subtractSubtract OSM/Overture road, canal and rail buffers from parcels; fix gap-fill edge bleeding./straighten-edgesRemove staircase edges from raster-derived parcels with a junction graph and deviation test, preserving shared boundaries./topology-repairFix invalid geometries, overlaps, gaps, slivers and mixed types in parcel layers while keeping shared edges. Apply after polygonisation, simplification or merge.Other plugins' skills for the same job