GDAL-RASTER-PIXEL-INFO(1) GDAL GDAL-RASTER-PIXEL-INFO(1) (NAME) gdal-raster-pixel-info - 3.11. (SYNOPSIS) : gdal raster pixel-info [OPTIONS] [ ] . : -i, --dataset, --input [] -p, --pos, --position or [ ] --position-dataset : -h, --help --json-usage JSON --config = [ ] : -f, --of, --format, --output-format ( 'GeoJSON' 'position-dataset' ) [ ] --position-dataset --position -l, --layer, --input-layer -o, --output ( ) --co, --creation-option = [ ] [ ] --lco, --layer-creation-option = [ ] [ ] --overwrite [ ] -b, --band () ( ) [ ] --overview (overview) --position-crs CRS ( 'pixel' 'position-dataset' ) -r, --resampling . RESAMPLING=nearest|bilinear|cubic|cubicspline (: nearest) --promote-pixel-value-to-z Z GeoJSON --include-field ( : ALL NONE) (: ALL) [ ] : --oo, --open-option = [ ] [ ] --if, --input-format [ ] [ ] (DESCRIPTION) gdal raster pixel-info . ( ) : o o o o VRT () ( GeoJSON) () : o "X Y" . o --position. o GDAL --position-dataset. : o CSV GeoJSON ( GeoJSON ) o GDAL --output . GDAL 3.13 gdal pipeline . GDAL . 3.13..SH " GDALG ( / ) (GDALG OUTPUT (ON-THE-FLY / STREAMED DATASET))" JSON GDALG . GDALG: GDAL Streamed Algorithm / . : . . : (PROGRAM-SPECIFIC OPTIONS) -b . . . -f, --of, --format, --output-format . --output csv geojson geojson . GDAL . --position-dataset 3.13 . GDAL . . (centroid) . gdal raster zonal-stats . . --position-crs . CRS . CRS CRS . . -l, --layer, --input-layer 3.13 . --position-dataset . -o, --output 3.13 . ( ) --include-field 3.13 . () --position-dataset . ( ALL ). NONE . --ovr, --overview (overview_level) (overview_level=0 ) . x,y ( / ) . -p, --pos, --position or --position-dataset . gdal ( ) . --position-crs pixel ( ). --position-crs dataset CRS . --position-crs CRS CRS . X Y . x,y . --position-crs pixel|dataset| (CRS) : o pixel () o dataset CRS . --promote-pixel-value-to-z 3.13 . Z GeoJSON . GeoJSON . -r, --resampling nearest|bilinear|cubic|cubicspline . nearest . : o nearest . o bilinear . o cubic . o cubicspline B-Spline . --oo, --open-option = ( ). . --if, --input-format / () . . . . . --co, --creation-option = . GeoTIFF (tiled) . . . --formats . Raster drivers . --lco, --layer-creation-option = . GeoPackage . . . --formats . Vector drivers . . --overwrite . gdal . (EXIT STATUS) 0 ( ). (EXAMPLES) : column=5 line=10 byte.tif $ gdal raster pixel-info byte.tif 5 10 { "type":"FeatureCollection", "crs":{ "type":"name", "properties":{ "name":"urn:ogc:def:crs:EPSG::26711" } }, "features":[ { "type":"Feature", "properties":{ "input_coordinate":[ 5.0, 10.0 ], "column":5.0, "line":10.0, "bands":[ { "band_number":1, "raw_value":132, "unscaled_value":132.0 } ] }, "geometry":{ "type":"Point", "coordinates":[ 441020.0, 3750720.0 ] } } ] } $ gdal raster pixel-info --position-crs=dataset byte.tif 441320 3750720 { "type":"FeatureCollection", "crs":{ "type":"name", "properties":{ "name":"urn:ogc:def:crs:EPSG::26711" } }, "features":[ { "type":"Feature", "properties":{ "input_coordinate":[ 441320.0, 3750720.0 ], "column":10.0, "line":10.0, "bands":[ { "band_number":1, "raw_value":115, "unscaled_value":115.0 } ] }, "geometry":{ "type":"Point", "coordinates":[ 441320.0, 3750720.0 ] } } ] } : WGS84 longitude=-117.6355 latitude=33.8970 byte.tif CSV $ gdal raster pixel-info --of=csv --position-crs=WGS84 byte.tif -117.6355 33.8970 geom_x,geom_y,extra_content,column,line,band_1_raw_value,band_1_unscaled_value -117.6355,33.897,,10.020546288988,9.98330473474925,115,115 : WGS84 longitude latitude. $ echo -117.6355 33.8970 | gdal raster pixel-info --of=csv --position-crs=WGS84 byte.tif geom_x,geom_y,extra_content,column,line,band_1_raw_value,band_1_unscaled_value -117.6355,33.897,,10.020546288988,9.98330473474925,115,115 : GeoPackage GeoPackage gdal raster pixel-info --position-dataset input.gpkg --input byte.tif --output output.gpkg : (on-the-fly) input.gpkg. gdal pipeline read byte.tif ! resize --size 50%,50% -r cubic ! pixel-info input.gpkg ! write output.gpkg gdal pipeline read input.gml ! swap-xy ! pixel-info --input byte.tif --position-dataset _ ! write output.gpkg (AUTHORS) Even Rouault (COPYRIGHT) 1998-2026 August 18, 2026 GDAL-RASTER-PIXEL-INFO(1)