| 1 | == Purpose == |
| 2 | |
| 3 | Lists information about a raster dataset. |
| 4 | |
| 5 | == Usage == |
| 6 | {{{ |
| 7 | gdalinfo [--help-general] [-mm] [-stats] [-nogcp] [-nomd] |
| 8 | [-mdd domain]* datasetname |
| 9 | }}} |
| 10 | |
| 11 | The gdalinfo program lists various information about a GDAL supported raster dataset. |
| 12 | |
| 13 | -mm:: |
| 14 | Force computation of the actual min/max values for each band in the dataset. |
| 15 | -stats:: |
| 16 | Read and display image statistics. Force computation if no statistics are stored in an image. |
| 17 | -nogcp:: |
| 18 | Suppress ground control points list printing. It may be useful for datasets with huge amount of GCPs, such as L1B AVHRR or HDF4 MODIS which contain thousands of the ones. |
| 19 | -nomd:: |
| 20 | Suppress metadata printing. Some datasets may contain a lot of metadata strings. |
| 21 | -mdd domain:: |
| 22 | Report metadata for the specified domain |
| 23 | |
| 24 | The gdalinfo will report all of the following (if known): |
| 25 | |
| 26 | * The format driver used to access the file. |
| 27 | * Raster size (in pixels and lines). |
| 28 | * The coordinate system for the file (in OGC WKT). |
| 29 | * The geotransform associated with the file (rotational coefficients are currently not reported). |
| 30 | * Corner coordinates in georeferenced, and if possible lat/long based on the full geotransform (but not GCPs). |
| 31 | * Ground control points. |
| 32 | * File wide (including subdatasets) metadata. |
| 33 | * Band data types. |
| 34 | * Band color interpretations. |
| 35 | * Band block size. |
| 36 | * Band descriptions. |
| 37 | * Band min/max values (internally known and possibly computed). |
| 38 | * Band NODATA value. |
| 39 | * Band overview resolutions available. |
| 40 | * Band unit type (i.e.. "meters" or "feet" for elevation bands). |
| 41 | * Band pseudo-color tables. |
| 42 | |
| 43 | == Example == |
| 44 | {{{ |
| 45 | gdalinfo ~/openev/utm.tif |
| 46 | Driver: GTiff/GeoTIFF |
| 47 | Size is 512, 512 |
| 48 | Coordinate System is: |
| 49 | PROJCS["NAD27 / UTM zone 11N", |
| 50 | GEOGCS["NAD27", |
| 51 | DATUM["North_American_Datum_1927", |
| 52 | SPHEROID["Clarke 1866",6378206.4,294.978698213901]], |
| 53 | PRIMEM["Greenwich",0], |
| 54 | UNIT["degree",0.0174532925199433]], |
| 55 | PROJECTION["Transverse_Mercator"], |
| 56 | PARAMETER["latitude_of_origin",0], |
| 57 | PARAMETER["central_meridian",-117], |
| 58 | PARAMETER["scale_factor",0.9996], |
| 59 | PARAMETER["false_easting",500000], |
| 60 | PARAMETER["false_northing",0], |
| 61 | UNIT["metre",1]] |
| 62 | Origin = (440720.000000,3751320.000000) |
| 63 | Pixel Size = (60.000000,-60.000000) |
| 64 | Corner Coordinates: |
| 65 | Upper Left ( 440720.000, 3751320.000) (117d38'28.21"W, 33d54'8.47"N) |
| 66 | Lower Left ( 440720.000, 3720600.000) (117d38'20.79"W, 33d37'31.04"N) |
| 67 | Upper Right ( 471440.000, 3751320.000) (117d18'32.07"W, 33d54'13.08"N) |
| 68 | Lower Right ( 471440.000, 3720600.000) (117d18'28.50"W, 33d37'35.61"N) |
| 69 | Center ( 456080.000, 3735960.000) (117d28'27.39"W, 33d45'52.46"N) |
| 70 | Band 1 Block=512x16 Type=Byte, ColorInterp=Gray |
| 71 | }}} |