{
  "id": "gdal",
  "name": "GDAL",
  "homepage": "https://gdal.org",
  "description": "A translator library for raster and vector geospatial data formats.",
  "icon": "SimpleIcons:gdal",
  "executables": [
    "gdalinfo",
    "gdal_translate",
    "gdalwarp",
    "ogr2ogr",
    "gdaldem"
  ],
  "dotfiles": {
    "paths": [
      "~/.gdal/gdalrc"
    ],
    "secret": [],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "Inspect raster (gdalinfo)",
    "description": "Print information about a raster dataset: size, projection, bands, metadata and optional statistics. Conversion tools such as gdal_translate and gdalwarp, and multi-value options, are not covered.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": false,
      "short_bundles": false
    },
    "source": [
      {
        "id": "doc",
        "kind": "manual",
        "url": "https://gdal.org/en/stable/programs/gdalinfo.html",
        "revision": "2026-10-27",
        "evidence": ".. option:: -json\n.. option:: -mm\n    Force computation of the actual min/max values for each band in the dataset.\n.. option:: -stats\n    Read and display image statistics. Force computation if no statistics are stored in an image.\n.. option:: -hist\n    Report histogram information for all bands.\n.. option:: -nogcp\n    Suppress ground control points list printing.\n.. option:: -nomd\n    Suppress metadata printing.\n.. option:: -checksum\n    Force computation of the checksum for each band in the dataset.\n.. option:: -proj4\n    Report a PROJ.4 string corresponding to the file's coordinate system.\n.. option:: -sd <n>\n    If the input dataset contains several subdatasets read and display a subdataset with specified n number (starting from 1).\n"
      }
    ],
    "field": [
      {
        "id": "json",
        "label": "JSON output",
        "type": "boolean",
        "option": [
          "-json"
        ],
        "sources": [
          "doc"
        ]
      },
      {
        "id": "stats",
        "label": "Image statistics",
        "type": "boolean",
        "option": [
          "-stats"
        ],
        "sources": [
          "doc"
        ]
      },
      {
        "id": "minmax",
        "label": "Compute min/max",
        "type": "boolean",
        "option": [
          "-mm"
        ],
        "sources": [
          "doc"
        ]
      },
      {
        "id": "hist",
        "label": "Histograms",
        "type": "boolean",
        "option": [
          "-hist"
        ],
        "sources": [
          "doc"
        ]
      },
      {
        "id": "checksum",
        "label": "Band checksums",
        "type": "boolean",
        "option": [
          "-checksum"
        ],
        "sources": [
          "doc"
        ]
      },
      {
        "id": "proj4",
        "label": "PROJ.4 string",
        "type": "boolean",
        "option": [
          "-proj4"
        ],
        "sources": [
          "doc"
        ]
      },
      {
        "id": "nomd",
        "label": "Hide metadata",
        "type": "boolean",
        "option": [
          "-nomd"
        ],
        "sources": [
          "doc"
        ]
      },
      {
        "id": "nogcp",
        "label": "Hide ground control points",
        "type": "boolean",
        "option": [
          "-nogcp"
        ],
        "sources": [
          "doc"
        ]
      },
      {
        "id": "subdataset",
        "label": "Subdataset number",
        "description": "Starts from 1.",
        "type": "integer",
        "option": [
          "-sd"
        ],
        "sources": [
          "doc"
        ]
      },
      {
        "id": "dataset",
        "label": "Dataset",
        "type": "path",
        "position": 0,
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "doc"
        ]
      }
    ],
    "task": [
      {
        "id": "summary",
        "label": "Summary with statistics",
        "set": {
          "stats": [
            true
          ]
        },
        "fields": [
          "dataset",
          "stats",
          "nomd"
        ],
        "required": [
          "dataset"
        ]
      },
      {
        "id": "json",
        "label": "Machine-readable JSON",
        "set": {
          "json": [
            true
          ]
        },
        "lock": [
          "json"
        ],
        "fields": [
          "dataset",
          "json",
          "stats"
        ],
        "required": [
          "dataset"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "dataset",
          "json",
          "stats",
          "minmax"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "hist",
          "checksum",
          "proj4",
          "nomd",
          "nogcp",
          "subdataset"
        ]
      }
    ]
  }
}
