[GRASS-SVN] r29605 -
grass/branches/releasebranch_6_3/general/g.setproj
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jan 8 08:09:37 EST 2008
Author: neteler
Date: 2008-01-08 08:09:37 -0500 (Tue, 08 Jan 2008)
New Revision: 29605
Modified:
grass/branches/releasebranch_6_3/general/g.setproj/main.c
Log:
Fixing bug (Trac #1): latitude_of_center and longitude_of_center ignored (merge from HEAD)
Modified: grass/branches/releasebranch_6_3/general/g.setproj/main.c
===================================================================
--- grass/branches/releasebranch_6_3/general/g.setproj/main.c 2008-01-08 12:13:17 UTC (rev 29604)
+++ grass/branches/releasebranch_6_3/general/g.setproj/main.c 2008-01-08 13:09:37 UTC (rev 29605)
@@ -454,7 +454,9 @@
else if (parm->def_exists) {
/* don't ask, use the default */
- if (G_strcasecmp(desc->type, "float") == 0) {
+ if (G_strcasecmp(desc->type, "float") == 0 ||
+ G_strcasecmp(desc->type, "lat") == 0 ||
+ G_strcasecmp(desc->type, "lon") == 0) {
sprintf(tmp_buff, "%.10f", parm->deflt);
G_set_key_value(desc->key, tmp_buff, out_proj_keys);
}
More information about the grass-commit
mailing list