Niwa coastal nz

From thecolab-ai/.skills · View interactive version

Niwa coastal nz is an AI agent skill from the GitHub repository thecolab-ai/.skills. Search and query NIWA (National Institute of Water and Atmospheric Research) public ArcGIS open data through a lightweight no-login CLI: org-scoped dataset search plus GeoJSON layer queries for the Coastal Sensitivity Index (erosion), beach exposure, coastal landform and hinterland classification, a

How to use this skill

Skill file

NIWA Coastal NZ

Goal

Discover and query NIWA's public ArcGIS open data — the national Coastal

Sensitivity Index, beach exposure, and coastal classification layers among

~1,400 open items — through source-native catalogue, metadata, feature-query,

and MapServer identify operations.

Use this when

exposure, coastal landform type, or hinterland characteristics as GeoJSON

The CSI inundation item is still listed in NIWA's catalogue but its backing

service was withdrawn (verified 2026-07-26) — search will surface it and a

query against it fails with an upstream Service not found. Use CSI erosion,

or searise-nz for site-level inundation drivers.

Do not use this for

Commands

python3 skills/niwa-coastal-nz/scripts/cli.py search "coastal sensitivity" --limit 5
python3 skills/niwa-coastal-nz/scripts/cli.py item c894b53b102f4f9db55278f7572ca4f6 --json
python3 skills/niwa-coastal-nz/scripts/cli.py layers c894b53b102f4f9db55278f7572ca4f6
python3 skills/niwa-coastal-nz/scripts/cli.py describe c894b53b102f4f9db55278f7572ca4f6 --layer-id 0 --json
python3 skills/niwa-coastal-nz/scripts/cli.py query c894b53b102f4f9db55278f7572ca4f6 --bbox "174.5,-41.5,175.2,-40.9" --limit 20 --json
python3 skills/niwa-coastal-nz/scripts/cli.py query c894b53b102f4f9db55278f7572ca4f6 --count --json
python3 skills/niwa-coastal-nz/scripts/cli.py identify 2e2f8ea5ea31453e808b36b2a1ca43a0 --point "174.78,-41.29" --no-geometry --json

--count and --ids-only are mutually exclusive. Query offset, ordering,

geometry precision, allowable offset, and geometry suppression map directly to

the ArcGIS REST controls; they do not add scientific interpretation.

Notes

hub-wide search APIs return a global catalogue and are deliberately not used

(gis.niwa.co.nz) or an Esri service path under the NIWA tenant; anything

else is refused (exit 7). Service paths and final redirects are revalidated.

minLon,minLat,maxLon,maxLat, in WGS84. Coordinates must be finite and in

longitude/latitude range. For Wellington, both

--point "174.78,-41.29" and --point=174.78,-41.29 forms work.

Its tolerance is in display pixels and results retain upstream layer,

attribute, and geometry values.

the COAST folder on gis.niwa.co.nz/server/rest/services carries the

coastal classification MapServers

--where/--bbox, or page with --offset

failure, malformed response, and legitimate empty results as JSON on stderr.

Resources

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.