Skip to content
Back to skills

Geospatial Utilities

ASecurity

"Guides SamGeo geospatial utility workflows for CRS checks, tile

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
datadebuggingapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill geospatial-utilities --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Geospatial Utilities?

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

Security grade badge for Geospatial Utilities
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-geospatial-utilities/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-geospatial-utilities)

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: geospatial-utilities
description: "Guides SamGeo geospatial utility workflows for CRS checks, tile
  downloads, image preparation, raster/vector conversion, split/merge, region
  analysis, and UTM helpers."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Geospatial utilities

Use this sub-skill when the task is primarily raster/vector preparation,
coordinate handling, CRS troubleshooting, data conversion, or safe validation
around `samgeo.common` rather than direct model inference.

## Read this when

- The user needs `tms_to_geotiff`, `image_to_cog`, `reproject`,
  `raster_to_vector`, `split_raster`, `merge_rasters`, `regularize`,
  `smooth_vector`, or `region_groups`.
- The user asks how to prepare multi-band GeoTIFFs for SAM, choose `bands`, or
  inspect raster metadata/statistics.
- The task involves converting prompt coordinates or boxes from CRS coordinates
  to pixel coordinates.
- The user is debugging CRS distortion, empty vector outputs, out-of-bounds
  prompts, tile downloads, or vector driver issues.

## Route elsewhere

- Model-specific automatic/prompt segmentation: [core-segmentation](../core-segmentation/SKILL.md).
- SAM3 tiled, text, or video workflows: [samgeo3-workflows](../samgeo3-workflows/SKILL.md).
- Optional model wrappers and captioning: [specialized-models](../specialized-models/SKILL.md).
- HTTP API request/response details: [api-server](../api-server/SKILL.md).

## Utility workflow order

1. Inspect the raster first: CRS, transform, width/height, band count, dtype,
   nodata, and stats.
2. Normalize imagery to uint8 RGB for SAM with `read_image_for_sam` or
   `prepare_image_for_sam`.
3. For map-tile workflows, keep bounding boxes small and confirm provider terms.
4. After segmentation, inspect mask values before vectorization.
5. Convert masks to vector formats, then optionally simplify, regularize, or
   smooth geometries.
6. Reproject only when the user explicitly wants a different CRS for downstream
   visualization or analysis.

## References and scripts

- [workflows.md](references/workflows.md) gives data-preparation and conversion
  recipes for common SamGeo support tasks.
- [api-reference.md](references/api-reference.md) records verified helper
  signatures and input/output assumptions.
- [troubleshooting.md](references/troubleshooting.md) covers CRS, bands,
  all-zero masks, tile download, GDAL/vector, and large-raster failures.
- [scripts/mini_geotiff_roundtrip.py](scripts/mini_geotiff_roundtrip.py)
  creates a tiny GeoTIFF and empty mask, then validates image prep and vector
  conversion without network access.

## Native validation candidates

- `tests/test_utmconv.py` is the safe native case for UTM math.
- The local subset of `tests/test_common.py` validates image prep, multi-band
  reads, and empty-mask vectorization.
- Network examples such as map tile downloads are optional and should be run
  only when network/provider access is authorized.

Files in this skill

  • SKILL.md2.9 KB
  • references/api-reference.md4.6 KB
  • references/troubleshooting.md2.4 KB
  • references/workflows.md3.2 KB
  • scripts/mini_geotiff_roundtrip.py2.9 KB

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.