Hi, It is possible to create multi-band xyz files with the gdal2xyz.py script. The usage and result is like this:
gdal2xyz -band 1 -band 2 -band 3 test.tif test.xyz more test.xyz 0.500 0.500 255 255 255 1.500 0.500 255 255 255 2.500 0.500 255 255 255 3.500 0.500 255 255 255 . . . However, in reading "the X, Y and Z columns (in that order) are assumed to be the first 3 columns of each line" as documented in https://gdal.org/drivers/raster/xyz.html and gdalinfo finds only the first band gdalinfo test.xyz Driver: XYZ/ASCII Gridded XYZ Files: test.xyz Size is 476, 468 Origin = (0.000000000000000,0.000000000000000) Pixel Size = (1.000000000000000,1.000000000000000) Corner Coordinates: Upper Left ( 0.0000000, 0.0000000) Lower Left ( 0.000, 468.000) Upper Right ( 476.000, 0.000) Lower Right ( 476.000, 468.000) Center ( 238.000, 234.000) Band 1 Block=476x1 Type=Byte, ColorInterp=Undefined Min=0.000 Max=255.000 Is there any way to get all the bands? -Jukka Rahkonen-
_______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
