Opened 9 months ago

Closed 9 months ago

Last modified 9 months 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 Changed 9 months ago by pauldzy

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

comment:2 Changed 9 months ago by Even Rouault

Resolution: fixed
Status: newclosed

In 35366:

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

comment:3 Changed 9 months ago by Even Rouault

In 35367:

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

Note: See TracTickets for help on using tickets.