gdal.location_info

Read raster band values at a point.

  • Kind: standard
  • Network: no
  • Wraps: gdallocationinfo

Inputs🔗

NameTypeDescription
sourcefile (GeoTIFF)Input raster.
xnumberQuery X coordinate.
ynumberQuery Y coordinate.
coord_systemstringgeoref (default) uses map coordinates; pixel uses pixel/line indices.

Outputs🔗

NameTypeDescription
valuesjsonJSON object with the query point and per-band values.