Opened 14 years ago

Last modified 10 years ago

#3732 closed defect

Add a FLOAT_FORMAT creation option to ASCII Grid writer — at Initial Version

Reported by: cdestigter Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: 1.10.1
Severity: normal Keywords: asciigrid
Cc: Kyle Shannon

Description

By default the AAIGrid float format string is "%6.20g"

At present AAIGrid supports "-co DECIMAL_PRECISION=10" which changes the formatstring to "%.10f".

That's a start, but we're finding it falls short. We want to be able to remove the extra spaces per pixel, while at the same time stripping unneccessary decimal components for ints.

For maximum flexibility we'd like to do this:

-co FLOAT_FORMAT=%.6g

I'll attach a patch shortly that addresses this.

Change History (0)

Note: See TracTickets for help on using tickets.