Change float format string for AAIGrid writer to %.20g
|Reported by:||cdestigter||Owned by:||Robert Coup|
Description (last modified by )
The AAIGrid float format string is "%6.20g"
Firstly, the 6 doesn't really add anything, and when writing small integers it causes them to be space-padded, which is a waste of bytes.
At present AAIGrid supports "-co DECIMAL_PRECISION=10" which changes the formatstring to "%.10f".
This is a little inconsistent, and the %f causes integers to be written as "9.000000000" which is a horrible waste of bytes.
I'll attach a minimal patch shortly which fixes these.
Change History (13)
comment:1 Changed 7 years ago by
|Summary:||Add a FLOAT_FORMAT creation option to ASCII Grid writer → Change float format string for AAIGrid writer to %.20g|
|Type:||enhancement → defect|
comment:3 Changed 4 years ago by
|Status:||closed → reopened|
|Version:||unspecified → 1.10.1|
comment:4 Changed 4 years ago by
|Owner:||changed from warmerdam to Robert Coup|
|Status:||reopened → new|