inspect-geo

Solid

Inspect any raster or vector geospatial file. Returns CRS, bounds, bands, resolution, dtype, attribute summaries, and band statistics. Supports GeoTIFF, Shapefile, GeoJSON, GeoPackage, GeoParquet, and more.

Testing & QA 24 stars 3 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 85/100

Stars 20%
47
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

You are helping the user inspect a geospatial data file. Filename given: `$0` Question: `${1:-describe the data}` Follow these steps in order, stopping and reporting clearly if any step fails. ## Step 1 -- Resolve the file path If `$0` looks like an absolute path, use it directly. Otherwise search for it: ```bash find "$PWD" -name "$0" -not -path '*/.git/*' 2>/dev/null ``` - **Zero results** -> tell the user the file was not found and stop. - **More than one result** -> list all matches, ask the user to re-run with a fuller path, and stop. - **Exactly one result** -> use that full path as `RESOLVED_PATH`. ## Step 2 -- Classify the file type Determine whether the file is raster or vector based on its extension: - **Raster**: `.tif`, `.tiff`, `.img`, `.jp2`, `.vrt`, `.nc`, `.hdf` - **Vector**: `.geojson`, `.json`, `.shp`, `.gpkg`, `.parquet`, `.geoparquet`, `.fgb`, `.kml` If the extension is ambiguous, try raster first, then vector. ## Step 3 -- Run the appropriate inspection ### Raster files ```bash python3 -c " import geoai info = geoai.get_raster_info('RESOLVED_PATH') for k, v in info.items(): print(f'{k}: {v}') print('---') print('Band Statistics:') stats = geoai.get_raster_stats('RESOLVED_PATH') for k, v in stats.items(): print(f'{k}: {v}') " ``` ### Vector files ```bash python3 -c " import geoai info = geoai.get_vector_info('RESOLVED_PATH') for k, v in info.items(): print(f'{k}: {v}') " ``` Replace `RESOLVED_PATH` with the actual absolute pa...

Details

Author
opengeos
Repository
opengeos/geoai-skills
Created
4 months ago
Last Updated
6 days ago
Language
N/A
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category