Friday 26 July 2019

gdal - How do I find out the resolution in (centimeters per pixel) of a TIF?


I tried using GDAL and got:


# gdalinfo nicholas_map_2.tif 

Driver: GTiff/GeoTIFF
Files: nicholas_map_2.tif
nicholas_map_2.tfw
Size is 28799, 27875
Coordinate System is:
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],

PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433],
AUTHORITY["EPSG","4326"]]
Origin = (-122.325695999999994,37.876846000000000)
Pixel Size = (0.000000441883000,-0.000000350276000)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
COMPRESSION=LZW
INTERLEAVE=PIXEL

Corner Coordinates:
Upper Left (-122.3256960, 37.8768460) (122d19'32.51"W, 37d52'36.65"N)
Lower Left (-122.3256960, 37.8670821) (122d19'32.51"W, 37d52' 1.50"N)
Upper Right (-122.3129702, 37.8768460) (122d18'46.69"W, 37d52'36.65"N)
Lower Right (-122.3129702, 37.8670821) (122d18'46.69"W, 37d52' 1.50"N)
Center (-122.3193331, 37.8719640) (122d19' 9.60"W, 37d52'19.07"N)
Band 1 Block=28799x32 Type=Byte, ColorInterp=Red
Mask Flags: PER_DATASET ALPHA
Band 2 Block=28799x32 Type=Byte, ColorInterp=Green
Mask Flags: PER_DATASET ALPHA

Band 3 Block=28799x32 Type=Byte, ColorInterp=Blue
Mask Flags: PER_DATASET ALPHA
Band 4 Block=28799x32 Type=Byte, ColorInterp=Alpha

I assume pixel size is what I'm looking for? But is that in degrees?




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...