whitebox-tools icon indicating copy to clipboard operation
whitebox-tools copied to clipboard

PrintGeoTiffTags truncates output

Open prof-pguth opened this issue 2 years ago • 0 comments

Hi,

WBT truncates the output of the GeoKey information in PrintGeoTiffTags. It does a good job with the standard TIFF codes, but stops in the middle of the GeoKeys.

I am using the following command line request:

C:\microdem\wbt\whitebox_tools.exe -r=PrintGeoTiffTags -v --input=F:\demix_wine_contest\slope_issues\new_grass_slope_temp_dem.tif >c:\mapdata\temp\wb-metadata_new_grass_slope_temp_dem.txt

Results follow. MICRODEM was also having problems (for some Geotiffs, depending on how the projection was defined), and I only tracked it down when I got listgeo and found that both MICRODEM and WBT were missing some of the Geokeys.

I supply a problem Geotiffs, which came out of GRASS/GDAL.

========================================================= WBT

GeoKey Info: Version: 1 Key revision: 1.0 GTModelTypeGeoKey (code=1024): ModelTypeProjected (1)

============================================================

MD

GEOTiff GeoKey Directory Tag 1 Byte 0 7 GeoKeyHeader
1024 other 0 1 1 GTModelTypeGeoKey (6.3.1.1 codes)
1025 other 0 1 1 GTRasterTypeGeoKey (6.3.1.2 codes) RasterPixelIsArea 1026 other 34737 22 0 GTCitationGeoKey (ASCII)
2049 other 34737 7 22 GeogCitationGeoKey (ASCII)
2054 other 0 1 9102 GeogAngularUnitGeoKey (6.3.1.4 codes)
3072 other 0 1 32628 ProjectedCSTypeGeoKey (6.3.3.1 codes) UTM (ellipse), zone=28N 3076 other 0 1 9001 ProjLinearUnitsGeoKey (6.3.1.3 codes) 1 new_grass_slope_temp_dem.zip

prof-pguth avatar Apr 03 '22 22:04 prof-pguth