GDALLOCATIONINFO(1) GDAL GDALLOCATIONINFO(1) (NAME) gdallocationinfo - . (SYNOPSIS) Usage: gdallocationinfo [--help] [--long-usage] [--help-general] [-xml] [-lifonly] [-valonly] [-E] [-field_sep ] [-ignore_extra_input] [-b ]... [-overview ] [-r nearest|bilinear|cubic|cubicspline] [[-l_srs ]|[-geoloc]|[-wgs84]] [-oo =]... (DESCRIPTION) gdallocationinfo . . : "gdal": gdal raster pixel-info . --help . --help-general GDAL . -xml XML . ( ). -lifonly LocationInfo ( VRT). -valonly . -field_sep . -b . . . -r {nearest|bilinear|cubic|cubicspline} 3.10 . . nearest . : nearest . bilinear (bilinear) . cubic (cubic) . cubicspline B-Spline . -overview (overview) (overview_level) ( overview_level=1 ) . x,y ( pixel/line ) . -l_srs x, y. -geoloc x,y . -wgs84 x,y WGS84 . -oo = ( ) -ignore_extra_input 3.9 . -valonly ( -field_sep ) -xml. -E 3.9 . (Echo) -valonly . -field_sep 3.9 . -valonly . x,y . GDAL . X . pixel/line -l_srs -wgs84 -geoloc . Y . pixel/line -l_srs -wgs84 -geoloc . . : o pixel/line (/). o LocationInfo . VRT () MBTiles . o . o (unscaled) Scale / Offset . x/y stdin . stdin . pixel/line . -geoloc -wgs84 -l_srs . . xml -xml . -valonly -lifonly LocationInfo . gdallocationinfo . (EXIT STATUS) 0 ( ). (EXAMPLES) : (256,256) utm.tif $ gdallocationinfo utm.tif 256 256 Report: Location: (256P,256L) Band 1: Value: 115 : VRT WGS84 XML $ gdallocationinfo -xml -wgs84 utm.vrt -117.5 33.75 utm.tif 16 : stdin $ cat coordinates.txt 443020 3748359 441197 3749005 443852 3747743 $ cat coordinates.txt | gdallocationinfo -geoloc utmsmall.tif Report: Location: (38P,49L) Band 1: Value: 214 Report: Location: (7P,38L) Band 1: Value: 107 Report: Location: (52P,59L) Band 1: Value: 148 $ cat coordinates.txt | gdallocationinfo -geoloc -valonly -E -field_sep , utmsmall.tif 443020,3748359,214 441197,3749005,107 443852,3747743,148 (AUTHORS) Frank Warmerdam (COPYRIGHT) 1998-2026 August 18, 2026 GDALLOCATIONINFO(1)