[GRASS-CVS] martinl: grass6/vector/v.in.ascii points.c,1.25,1.26
grass at intevation.de
grass at intevation.de
Sun Nov 25 07:03:46 EST 2007
Author: martinl
Update of /grassrepository/grass6/vector/v.in.ascii
In directory doto:/tmp/cvs-serv22780
Modified Files:
points.c
Log Message:
Precision for latlong (double to string conversion)
Index: points.c
===================================================================
RCS file: /grassrepository/grass6/vector/v.in.ascii/points.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- points.c 25 Nov 2007 11:09:36 -0000 1.25
+++ points.c 25 Nov 2007 12:03:44 -0000 1.26
@@ -150,7 +150,7 @@
if (i == xcol) {
if (G_scan_easting(coorbuf, &easting, window.proj)) {
G_debug(4, "is_latlong east: %f", easting);
- sprintf(tmp_token, "%f", easting);
+ sprintf(tmp_token, "%.12f", easting);
/* replace current DMS token by decimal degree */
tokens[i] = tmp_token;
if (region_flag) {
@@ -165,7 +165,7 @@
if (i == ycol) {
if (G_scan_northing(coorbuf, &northing, window.proj)) {
G_debug(4, "is_latlong north: %f", northing);
- sprintf(tmp_token, "%f", northing);
+ sprintf(tmp_token, "%.12f", northing);
/* replace current DMS token by decimal degree */
tokens[i] = tmp_token;
if (region_flag) {
More information about the grass-commit
mailing list