Trunkated cellsize when exporting rasters to arc ascii grid (r.out.arc)
|Reported by:||reymondin||Owned by:|
|Keywords:||arc ascii grid r.out.arc||Cc:|
When exporting rasters to arc ascii grid (r.out.arc) , the cellsize and the corners coordinates in the header are truncated after only 6 decimals. This should not happen as it moves the region.
This could be because when the header is written the following line is used to print the cell size (from source http://trac.osgeo.org/grass/browser/grass/trunk/raster/r.out.arc/main.c, line 159)
fprintf(fp, "cellsize %f\n", cellsize);
On some systems the %f flag will set the number of decimals to 6.