Skip to content
Back to skills

31 Export Vector To File

ASecurity

Sub-skill of python-gis-ecosystem: 3.1 Export Vector to File (+1).

  • 17 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
developmentpythongo

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --skill 31-export-vector-to-file --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 31 Export Vector To File?

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

Security grade badge for 31 Export Vector To File
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-31-export-vector-to-file/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-31-export-vector-to-file)

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: python-gis-ecosystem-31-export-vector-to-file
description: 'Sub-skill of python-gis-ecosystem: 3.1 Export Vector to File (+1).'
version: 1.0.0
category: engineering/gis
type: reference
scripts_exempt: true
---

# 3.1 Export Vector to File (+1)

## 3.1 Export Vector to File


```python
# 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)


```python
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)
```

---

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…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.