qgis-11-pyqgis-application-bootstrap-headless
Sub-skill of qgis: 1.1 PyQGIS Application Bootstrap (Headless) (+2).
Best use case
qgis-11-pyqgis-application-bootstrap-headless is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Sub-skill of qgis: 1.1 PyQGIS Application Bootstrap (Headless) (+2).
Teams using qgis-11-pyqgis-application-bootstrap-headless should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/11-pyqgis-application-bootstrap-headless/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How qgis-11-pyqgis-application-bootstrap-headless Compares
| Feature / Agent | qgis-11-pyqgis-application-bootstrap-headless | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Sub-skill of qgis: 1.1 PyQGIS Application Bootstrap (Headless) (+2).
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 1.1 PyQGIS Application Bootstrap (Headless) (+2)
## 1.1 PyQGIS Application Bootstrap (Headless)
```python
import sys
import os
# Required: set QGIS prefix path before importing
os.environ["QT_QPA_PLATFORM"] = "offscreen" # headless mode
from qgis.core import QgsApplication
qgs = QgsApplication([], False) # False = no GUI
qgs.initQgis()
# Always call at end of script:
# qgs.exitQgis()
```
## 1.2 Well Locations from CSV (lat/lon)
```python
from qgis.core import (QgsVectorLayer, QgsProject,
QgsCoordinateReferenceSystem)
# CSV with columns: well_name,latitude,longitude
uri = (
"file:///path/to/wells.csv"
"?delimiter=,"
"&xField=longitude"
"&yField=latitude"
"&crs=EPSG:4326" # WGS84 geographic
)
layer = QgsVectorLayer(uri, "wells", "delimitedtext")
if not layer.isValid():
raise RuntimeError("Failed to load CSV layer")
QgsProject.instance().addMapLayer(layer)
```
## 1.3 Supported Input Formats
| Format | Driver | Use |
|--------|--------|-----|
| GeoPackage (.gpkg) | GPKG | Preferred vector store |
| Shapefile (.shp) | ESRI Shapefile | Legacy vector |
| GeoJSON (.geojson) | GeoJSON | Web interchange |
| GeoTIFF (.tif) | GTiff | Raster standard |
| NetCDF (.nc) | netCDF | Metocean/bathymetry |
| KML (.kml) | KML | Google Earth exchange |
| CSV + lat/lon | delimitedtext | Point data import |
---Related Skills
provider-audit-bootstrap-and-path-classification
Fix provider-session ecosystem audit failures caused by source-checkout imports and over-aggressive symbolic-path classification.
gmail-headless-oauth
Manual OAuth2 token exchange for Gmail on headless servers. Bypass gmail-mcp-multiauth browser requirement. Generate auth URLs, exchange codes, manage multi-account credentials with auto-refresh.
mooring-analysis-application-1-fpso-12-line-mooring
Sub-skill of mooring-analysis: Application 1: FPSO 12-Line Mooring (+1).
hydrodynamic-analysis-application-3-added-mass-convergence-check
Sub-skill of hydrodynamic-analysis: Application 3: Added Mass Convergence Check.
hydrodynamic-analysis-application-1-complete-rao-analysis
Sub-skill of hydrodynamic-analysis: Application 1: Complete RAO Analysis (+1).
qgis-31-read-features-from-output-layer
Sub-skill of qgis: 3.1 Read Features from Output Layer (+2).
qgis-21-qgisprocess-cli-headless
Sub-skill of qgis: 2.1 qgis_process CLI (Headless) (+2).
blender-interface-cli-headless-execution
Sub-skill of blender-interface: CLI Headless Execution (+3).
git-worktree-workflow-headless-mode-in-worktrees
Sub-skill of git-worktree-workflow: Headless Mode in Worktrees.
dash-5-multi-page-applications
Sub-skill of dash: 5. Multi-Page Applications.
dash-4-bootstrap-components
Sub-skill of dash: 4. Bootstrap Components.
dash-1-basic-application-structure
Sub-skill of dash: 1. Basic Application Structure.