[GRASS-SVN] r51615 - grass/trunk/raster/r.out.arc
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri May 11 07:59:55 EDT 2012
Author: mmetz
Date: 2012-05-11 04:59:54 -0700 (Fri, 11 May 2012)
New Revision: 51615
Modified:
grass/trunk/raster/r.out.arc/main.c
Log:
r.out.arc: use full fp precision for LL
Modified: grass/trunk/raster/r.out.arc/main.c
===================================================================
--- grass/trunk/raster/r.out.arc/main.c 2012-05-10 12:35:13 UTC (rev 51614)
+++ grass/trunk/raster/r.out.arc/main.c 2012-05-11 11:59:54 UTC (rev 51615)
@@ -152,11 +152,15 @@
}
}
else { /* yes, lat/long */
- fprintf(fp, "xllcorner %f\n", region.west);
- fprintf(fp, "yllcorner %f\n", region.south);
+ G_format_easting(region.west, buf, -1);
+ fprintf(fp, "xllcorner %s\n", buf);
+
+ G_format_northing(region.south, buf, -1);
+ fprintf(fp, "yllcorner %s\n", buf);
}
- fprintf(fp, "cellsize %f\n", cellsize);
+ G_format_resolution(cellsize, buf, -1);
+ fprintf(fp, "cellsize %s\n", buf);
fprintf(fp, "NODATA_value %s\n", null_str);
}
More information about the grass-commit
mailing list