[gdal-dev] AAIGrid decimal precision
Frank Warmerdam
warmerdam at pobox.com
Wed Jun 18 11:04:36 EDT 2008
Volker Wichmann wrote:
> Hi,
>
> I have the following problem: the format of my data is originally
> arc/info ascii with two decimals (e.g. 1002.35). For processing, I need
> to use/convert to GeoTiff (Float32). And in the end, I use
> gdal_translate to write the processed data again as arc/info ascii. But
> now there are over 10 decimals written (e.g. 2003.73324423545) which
> causes the file to take about twice the size of the original raster.
> so my question is actually if there is any control on the decimal
> precision written to ascii files? I see that the AAIGrid driver uses "
> %6.20g" for printing, so I could patch this. But it would be nicer to
> have a feature like a driver creation option to specify the number of
> decimals desired.
Volker,
I would encourage you to file an enhancement request for this. It would
be quite easily to add some sort of precision control creation option.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo, http://osgeo.org
More information about the gdal-dev
mailing list