[gdal-dev] Change of DECIMAL_PRECISION in AAIGrid

Casper Børgesen (CABO) CABO at NIRAS.DK
Mon Sep 2 00:01:36 PDT 2013


Hi list!

I have just performed a test using gdal_translate to translate a GeoTIFF (referenced using a VRT file) to ASCII Grid, and I have stumpled upon an issue with precision.

This is my syntax:

gdal_translate -of AAIGrid -ot Float32 -co DECIMAL_PRECISION=2 my_source.vrt my_target.asc

I have tried the above syntax using gdal 1.9.2 and 1.10 and these are examples from my results:

1.9.2:
...
3.77 3.83 3.89 3.87 3.79 3.49 3.03 2.50 1.96 1.56 1.29 0.95 0.77 0.54 0.53 0.41
...

1.10:
...
3.8 3.8 3.9 3.9 3.8 3.5 3 2.5 2 1.6 1.3 0.95 0.77 0.54 0.53 0.41
...

Has the meaning of DECIMAL_PRECISION changed from 1.9.2 to 1.10?

It seems like in 1.9.2 the meaning is X characters to the right of the comma and in 1.10 it means X describing characters?

I haven't tried the 1.10.1 release because I can't find the binaries on Tamas gisinternals.


Kind regards, Casper

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130902/0a2acebd/attachment.html>


More information about the gdal-dev mailing list