Opened 12 years ago

Last modified 5 years ago

#4892 closed defect

gdal_convert creates incorrect negative values when converting to ARG format. — at Initial Version

Reported by: remanuele Owned by: dzwarg
Priority: normal Milestone: closed_because_of_github_migration
Component: default Version: svn-trunk
Severity: normal Keywords: gdal_translate ARG
Cc:

Description

reproduction:

In working directory, where ever attached dem file is located

$ gdal_translate -of ARG -ot Float32 philly_30m.dem philly_30m.arg

Actual Behavior:

$ gdalinfo -stats philly_30m.dem | grep Min

Minimum=0.000, ...

$ gdalinfo -stats philly_30m.arg | grep Min

Minimum=-32767.000, ...

Expected behavior: the Minimum for the .tiff and .arg files would be the same (0.0)

This same behavior happens if you were to convert the DEM to GeoTIFF, and then convert the GeoTIFF to ARG. The DEM and GeoTIFF formats both have a Minimum of 0.0, the ARG has -32767.0.

Change History (1)

by remanuele, 12 years ago

Attachment: mt_st_helens.dem added

Mt. St. Helens DEM data from before the 1980 eruption.

Note: See TracTickets for help on using tickets.