[gdal-dev] Re: GDALINFO cannot pipe to text file

Hermann Peifer peifer at gmx.eu
Fri Sep 3 02:32:04 EDT 2010


On 03/09/2010 02:27, AusRod wrote:
>
>

Same here:

$ GDALINFO file.tif > textfile
-bash: GDALINFO: command not found

But there is an easy way out. See below. Hermann

$ gdalinfo file.tif > textfile

$ cat textfile
Driver: GTiff/GeoTIFF
Files: file.tif
Size is 4850, 4150
Coordinate System is:
PROJCS["ETRS_1989_LAEA_L52_M10",
     GEOGCS["European_Terrestrial_Reference_System_1989",
         DATUM["European_Terrestrial_Reference_System_1989",
             SPHEROID["GRS 1980",6378137,298.2572221010002,
                 AUTHORITY["EPSG","7019"]],
             AUTHORITY["EPSG","6258"]],
         PRIMEM["Greenwich",0],
         UNIT["degree",0.0174532925199433]],
     PROJECTION["Lambert_Azimuthal_Equal_Area"],
     PARAMETER["latitude_of_center",52],
     PARAMETER["longitude_of_center",10],
     PARAMETER["false_easting",4321000],
     PARAMETER["false_northing",3210000],
     UNIT["metre",1,
         AUTHORITY["EPSG","9001"]]]
Origin = (2555000.000000000000000,5500000.000000000000000)
Pixel Size = (1000.000000000000000,-1000.000000000000000)
Metadata:
   AREA_OR_POINT=Area
Image Structure Metadata:
   INTERLEAVE=BAND
Corner Coordinates:
Upper Left  ( 2555000.000, 5500000.000) ( 34d 7'12.64"W, 67d17'7.44"N)
Lower Left  ( 2555000.000, 1350000.000) (  8d54'24.14"W, 33d13'50.38"N)
Upper Right ( 7405000.000, 5500000.000) ( 72d57'42.08"E, 58d55'2.50"N)
Lower Right ( 7405000.000, 1350000.000) ( 42d 7'32.17"E, 29d19'21.50"N)
Center      ( 4980000.000, 3425000.000) ( 19d58'18.08"E, 53d31'26.07"N)
Band 1 Block=256x256 Type=Int16, ColorInterp=Gray
   NoData Value=-9999



More information about the gdal-dev mailing list