Nz arcgis

From thecolab-ai/.skills · View interactive version

Nz arcgis is an AI agent skill from the GitHub repository thecolab-ai/.skills. Discover and query allowlisted New Zealand public-sector and utility ArcGIS services and layers, including Auckland, Christchurch, Dunedin and Hamilton assets, hazards and transport data. Use for service/layer metadata, counts and bounded WGS84 spatial extracts as JSON, GeoJSON or CSV, including PC1

How to use this skill

Skill file

NZ ArcGIS

Use scripts/cli.py to discover public ArcGIS REST services from verified New Zealand publishers, inspect layers and extract bounded spatial records. Python 3.10+, stdlib only; keyless and read-only.

Workflow

  1. Run orgs to select a publisher and inspect its verified roots.
  2. Use services ORG then layers ORG SERVICE to discover layer URLs. A service name includes its server type, such as PJ_Roadworks_MS/FeatureServer. Enterprise services on another root use their full allowlisted HTTPS URL.
  3. For Auckland hackathon data, use layers --curated akl --problem F1 or read references/layers-auckland.md. Names, A/B grades, problem tags, licences and caveats are machine-readable in references/layers-auckland.json.

Use layers --curated nz --publisher dcc for the wider selection; references/layers-nz.md and references/layers-nz.json document the additional council layers, Flooded NZ and PC120 services. --publisher filters either curated selection by organisation code.

  1. Run describe LAYER_URL before choosing fields or an attribute filter; it includes fields, geometry type, record count and the upstream editing timestamp when published.

Problem tags: F1 flooding/flow paths; T1 congestion; T2 near-miss safety; T3 incidents/roadworks; W1 construction and demolition materials; W2 reuse/repair/recycling; W3 illegal dumping.

  1. Use count to size a selection, then query with a WGS84 bbox and small limit. Preserve the layer caveats when interpreting an extract.

Commands

python3 skills/nz-arcgis/scripts/cli.py orgs --json
python3 skills/nz-arcgis/scripts/cli.py services at --json
python3 skills/nz-arcgis/scripts/cli.py layers at PJ_Roadworks_MS/FeatureServer --json
python3 skills/nz-arcgis/scripts/cli.py layers --curated akl --problem F1 --json
python3 skills/nz-arcgis/scripts/cli.py layers --curated nz --publisher ccc --json
python3 skills/nz-arcgis/scripts/cli.py services hcc --root 0 --max-requests 1 --json
python3 skills/nz-arcgis/scripts/cli.py count https://apps.dunedin.govt.nz/arcgis/rest/services/Public/Search/FeatureServer/0 --json
python3 skills/nz-arcgis/scripts/cli.py describe https://tiles.arcgis.com/tiles/n4yPwebTjJCmXB6W/arcgis/rest/services/PC120Revised_PROD_Precincts/MapServer --json
python3 skills/nz-arcgis/scripts/cli.py query https://gis.ccc.govt.nz/server/rest/services/OpenData/Structure/FeatureServer/2 --bbox 172.635,-43.535,172.64,-43.53 --fields FenceID,Height --limit 5 --format geojson
python3 skills/nz-arcgis/scripts/cli.py query https://services-ap1.arcgis.com/eqbFSejuTufXDr0E/arcgis/rest/services/flooded_nz_gdb_v2_202603181308/FeatureServer/0 --fields objectid,obs_date,impact,obs_depth,obs_depth_v2,historic --limit 5 --json
python3 skills/nz-arcgis/scripts/cli.py search stormwater --org akl --root 0 --max-services 20 --json
python3 skills/nz-arcgis/scripts/cli.py describe https://services2.arcgis.com/JkPEgZJGxhSjYOo0/arcgis/rest/services/PJ_Roadworks_MS/FeatureServer/0 --json
python3 skills/nz-arcgis/scripts/cli.py count https://services2.arcgis.com/JkPEgZJGxhSjYOo0/arcgis/rest/services/PJ_Roadworks_MS/FeatureServer/0 --json
python3 skills/nz-arcgis/scripts/cli.py query https://services2.arcgis.com/JkPEgZJGxhSjYOo0/arcgis/rest/services/PJ_Roadworks_MS/FeatureServer/0 --bbox 174.738,-36.895,174.741,-36.888 --limit 5 --format geojson --json
python3 skills/nz-arcgis/scripts/cli.py query https://services1.arcgis.com/n4yPwebTjJCmXB6W/arcgis/rest/services/Stormwater_Pipe/FeatureServer/0 --bbox 174.919,-37.024,174.922,-37.021 --fields OBJECTID --limit 5 --format csv

References and checks

Read references/source-notes.md for verification results, excluded routes and bounds. references/orgs.json is the runtime allowlist; references/verification.json records live root checks, including failures. references/curation-exclusions.json records omitted catalogue feature layers.

Run scripts/test_contract.py for deterministic contracts and response assertions, and scripts/smoke_test.py for bounded live probes. Maintainers can rebuild the Auckland files using python3 skills/nz-arcgis/scripts/curate_layers.py skills/nz-data-catalogue/data/catalogue.json.gz; add --reuse-verification to retain bundled probe timestamps. Rebuild the additional selection with python3 skills/nz-arcgis/scripts/curate_more_layers.py skills/nz-data-catalogue/data/catalogue.json.gz; it verifies metadata/counts and records failures in references/more-layer-exclusions.json.

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.