[GRASS-SVN] r57745 - grass/trunk/display/d.northarrow

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Sep 18 23:08:54 PDT 2013


Author: hamish
Date: 2013-09-18 23:08:54 -0700 (Wed, 18 Sep 2013)
New Revision: 57745

Modified:
   grass/trunk/display/d.northarrow/d.northarrow.html
   grass/trunk/display/d.northarrow/main.c
Log:
note TODOs

Modified: grass/trunk/display/d.northarrow/d.northarrow.html
===================================================================
--- grass/trunk/display/d.northarrow/d.northarrow.html	2013-09-19 00:40:30 UTC (rev 57744)
+++ grass/trunk/display/d.northarrow/d.northarrow.html	2013-09-19 06:08:54 UTC (rev 57745)
@@ -8,6 +8,13 @@
 page</a> for details).
 
 
+<h2>TODO</h2>
+
+Add options to use an arbitrary rotation angle for when grid north and true
+north diverge, and add a flag to calculate that convergence angle and apply
+the rotation automatically.
+
+
 <h2>SEE ALSO</h2>
 
 <em>

Modified: grass/trunk/display/d.northarrow/main.c
===================================================================
--- grass/trunk/display/d.northarrow/main.c	2013-09-19 00:40:30 UTC (rev 57744)
+++ grass/trunk/display/d.northarrow/main.c	2013-09-19 06:08:54 UTC (rev 57745)
@@ -90,6 +90,15 @@
     no_text->description = _("Draw the symbol without text");
     no_text->guisection = _("Text");
 
+/* TODO:
+     - add rotation= option to rotate the north arrow by an arbitrary amount.
+       do a bit of trig to figure out where to put the "N" (and rotate it too).
+     - add a -n flag to rotate to match true north instead of grid north.
+       Similar to 'g.region -n' but use the at=x,y coord for the convergence
+       angle calc. (assuming that's the center of the icon)
+ */
+
+
     if (G_parser(argc, argv))
 	exit(EXIT_FAILURE);
 



More information about the grass-commit mailing list