qgis-11-pyqgis-application-bootstrap-headless

Sub-skill of qgis: 1.1 PyQGIS Application Bootstrap (Headless) (+2).

5 stars

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

$curl -o ~/.claude/skills/11-pyqgis-application-bootstrap-headless/SKILL.md --create-dirs "https://raw.githubusercontent.com/vamseeachanta/workspace-hub/main/.agents/skills/_archive/engineering/gis/qgis/11-pyqgis-application-bootstrap-headless/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/11-pyqgis-application-bootstrap-headless/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How qgis-11-pyqgis-application-bootstrap-headless Compares

Feature / Agentqgis-11-pyqgis-application-bootstrap-headlessStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/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

5
from vamseeachanta/workspace-hub

Fix provider-session ecosystem audit failures caused by source-checkout imports and over-aggressive symbolic-path classification.

gmail-headless-oauth

5
from vamseeachanta/workspace-hub

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

5
from vamseeachanta/workspace-hub

Sub-skill of mooring-analysis: Application 1: FPSO 12-Line Mooring (+1).

hydrodynamic-analysis-application-3-added-mass-convergence-check

5
from vamseeachanta/workspace-hub

Sub-skill of hydrodynamic-analysis: Application 3: Added Mass Convergence Check.

hydrodynamic-analysis-application-1-complete-rao-analysis

5
from vamseeachanta/workspace-hub

Sub-skill of hydrodynamic-analysis: Application 1: Complete RAO Analysis (+1).

qgis-31-read-features-from-output-layer

5
from vamseeachanta/workspace-hub

Sub-skill of qgis: 3.1 Read Features from Output Layer (+2).

qgis-21-qgisprocess-cli-headless

5
from vamseeachanta/workspace-hub

Sub-skill of qgis: 2.1 qgis_process CLI (Headless) (+2).

blender-interface-cli-headless-execution

5
from vamseeachanta/workspace-hub

Sub-skill of blender-interface: CLI Headless Execution (+3).

git-worktree-workflow-headless-mode-in-worktrees

5
from vamseeachanta/workspace-hub

Sub-skill of git-worktree-workflow: Headless Mode in Worktrees.

dash-5-multi-page-applications

5
from vamseeachanta/workspace-hub

Sub-skill of dash: 5. Multi-Page Applications.

dash-4-bootstrap-components

5
from vamseeachanta/workspace-hub

Sub-skill of dash: 4. Bootstrap Components.

dash-1-basic-application-structure

5
from vamseeachanta/workspace-hub

Sub-skill of dash: 1. Basic Application Structure.