[GRASS-SVN] r46384 - grass/branches/releasebranch_6_4/ps/ps.map

svn_grass at osgeo.org svn_grass at osgeo.org
Mon May 23 07:35:07 EDT 2011


Author: hamish
Date: 2011-05-23 04:35:07 -0700 (Mon, 23 May 2011)
New Revision: 46384

Modified:
   grass/branches/releasebranch_6_4/ps/ps.map/do_geogrid.c
Log:
comment on common semi-bug (merge from devbr6, r45417,23,24)


Modified: grass/branches/releasebranch_6_4/ps/ps.map/do_geogrid.c
===================================================================
--- grass/branches/releasebranch_6_4/ps/ps.map/do_geogrid.c	2011-05-23 11:30:47 UTC (rev 46383)
+++ grass/branches/releasebranch_6_4/ps/ps.map/do_geogrid.c	2011-05-23 11:35:07 UTC (rev 46384)
@@ -170,8 +170,8 @@
     set_rgb_color(PS.geogrid_numbers_color);
     first = 1;
 
-    /* horizontal grid numbers
-     * these numbers only appear on the left edge of the first panel.
+    /* vertical grid numbers
+     * these numbers only appear on the right edge
      * center the numbers on each grid line.
      * suppress number if it falls off the map or would overlay the previous
      *  label
@@ -216,7 +216,7 @@
 	}
     }
 
-    /* vertical grid numbers 
+    /* horizontal grid numbers along the bottom
      * center the numbers on each grid line.
      * suppress number if it falls of the map or would overlay the previous
      *  label
@@ -373,10 +373,13 @@
 }
 
 
-/******************************************************
+/********************************************************************
  * check projected coords to make sure they do not 
- * go outside region -- if so re-project 
-********************************************************/
+ *   go outside region -- if so re-project 
+ * This gets a bit wobbly if the projection does not reverse-project
+ *   cleanly, e.g. if the eastern edge of a UTM region is many
+ *   degrees east of the end of the zone where things get distorted.
+ *******************************************************************/
 void check_coords(double e, double n, double *lon, double *lat, int par)
 {
     double x, y;



More information about the grass-commit mailing list