Agent skill
python-gis-ecosystem-31-export-vector-to-file
Sub-skill of python-gis-ecosystem: 3.1 Export Vector to File (+1).
Install this agent skill to your Project
npx add-skill https://github.com/vamseeachanta/workspace-hub/tree/main/.claude/skills/_archive/engineering/gis/python-gis-ecosystem/31-export-vector-to-file
SKILL.md
3.1 Export Vector to File (+1)
3.1 Export Vector to File
# GeoPackage (preferred)
gdf_utm.to_file("wells_utm.gpkg", driver="GPKG", layer="wells")
# GeoJSON (web interchange, WGS84 expected)
gdf.to_file("wells.geojson", driver="GeoJSON")
# Shapefile (legacy)
gdf.to_file("wells.shp")
3.2 Export Raster (Rasterio)
import rasterio
from rasterio.transform import from_bounds
profile = {
"driver": "GTiff", "dtype": "float32",
"width": arr.shape[1], "height": arr.shape[0],
"count": 1, "crs": "EPSG:32631",
"transform": from_bounds(x_min, y_min, x_max, y_max,
arr.shape[1], arr.shape[0]),
"compress": "lzw", "nodata": -9999
}
with rasterio.open("output.tif", "w", **profile) as dst:
dst.write(arr.astype("float32"), 1)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
gsd-complete-milestone
Archive completed milestone and prepare for next version
gsd-reapply-patches
Reapply local modifications after a GSD update
gsd-verify-work
Validate built features through conversational UAT
gsd-thread
Manage persistent context threads for cross-session work
clinical-trial-protocol
Generate clinical trial protocols for medical devices or drugs through a modular, waypoint-based architecture with research-only and full protocol modes.
single-cell-rna-qc
Performs quality control on single-cell RNA-seq data (.h5ad or .h5 files) using scverse best practices with MAD-based filtering and comprehensive visualizations.
Didn't find tool you were looking for?