Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#6644 closed enhancement (fixed)

gdal2xyz should display Int32 as integer

Reported by: pauldzy Owned by: warmerdam
Priority: low Milestone:
Component: GDAL_Raster Version: 2.1.0
Severity: normal Keywords: gdal2xyz
Cc:

Description

Hello,

Just on my usual kick to get GDAL to handle Int32s. This one is very low priority.

Using GDAL 2.1.0 and Int32 tif located here http://www.dziemiela.com/water/fac_22M.tif

1) gdallocationinfo -b 1 -wgs84 fac_22M.tif 145.7 15.28 provides int32 as expected

Report:
  Location: (122P,105L)
  Band 1:
    Value: -2147483647

2) gdal2xyz -band 1 -srcwin 1 1 1 1 fac_22M.tif shows rounded scientific notation

359204.797 1690752.088 -2.14748e+09

Thanks!

Paul

Change History (3)

comment:1 by pauldzy, 8 years ago

Component: defaultGDAL_Raster
Keywords: gdal2xyz added
Version: unspecified2.1.0

comment:2 by Even Rouault, 8 years ago

Resolution: fixed
Status: newclosed

In 35366:

gdal2xyz: use %d formatting for Int32/UInt32 data types (fixes #6644)

comment:3 by Even Rouault, 8 years ago

In 35367:

gdal2xyz: use %d formatting for Int32/UInt32 data types (fixes #6644)

Note: See TracTickets for help on using tickets.