Home

Geospatial

This page lists the safe and destructive patterns in the Climate Data Tools and GDAL/OGR shell guard packs. See Shell Tool for how these patterns are evaluated.

Climate Data Tools

Pack ID: geospatial.climate_data

Guards against destructive operations on NetCDF/HDF climate data files

Safe patterns

Rule IDPattern
geospatial.climate_data.ncdump^ncdump\b[^|><]*$
geospatial.climate_data.cdo_info^cdo\s+(?:info|sinfo|showname|showvar)\b[^|><]*$

Destructive patterns

Rule IDReasonSuggestionConfidence
geospatial.climate_data.ncatted_overwriteOverwrites the input NetCDF file when editing attributesUse -o output.nc to write to a new file instead of overwritingMedium
geospatial.climate_data.ncks_overwriteOverwrites existing NetCDF output filesRemove -O; use a new output filenameMedium
geospatial.climate_data.cdo_replaceCDO overwrite mode replaces existing output filesRemove -O; use a new output filename or backup firstMedium

GDAL/OGR

Pack ID: geospatial.gdal

Guards against destructive GDAL/OGR geospatial data operations

Safe patterns

Rule IDPattern
geospatial.gdal.gdalinfo^gdalinfo\b[^|><]*$
geospatial.gdal.ogrinfo^ogrinfo\b[^|><]*$

Destructive patterns

Rule IDReasonSuggestionConfidence
geospatial.gdal.gdal_translate_overwriteOverwrites existing raster output files without confirmationRemove --overwrite; rename the output file or backup firstMedium
geospatial.gdal.gdalwarp_overwriteOverwrites existing warped raster outputRemove the overwrite flag; use a new output filenameMedium
geospatial.gdal.ogr2ogr_overwriteOverwrites existing vector dataset outputRemove the overwrite flag; use a new output filenameMedium
geospatial.gdal.ogr2ogr_update_deleteModifies existing vector datasets by appending or updating featuresBackup the target dataset first; review with ogrinfoMedium

This documentation was generated from rust/agents/src/tool_guard/shell/packs/geospatial.rs.

© 2026 Stencila