[GRASS-SVN] r48535 - in grass/trunk: gui/wxpython/docs gui/wxpython/gui_modules misc/m.transform

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Sep 28 08:04:13 EDT 2011


Author: hamish
Date: 2011-09-28 05:04:13 -0700 (Wed, 28 Sep 2011)
New Revision: 48535

Added:
   grass/trunk/misc/m.transform/m.transform.html
Removed:
   grass/trunk/misc/m.transform/g.transform.html
Modified:
   grass/trunk/gui/wxpython/docs/wxGUI.GCP_Manager.html
   grass/trunk/gui/wxpython/gui_modules/gcpmanager.py
   grass/trunk/misc/m.transform/Makefile
   grass/trunk/misc/m.transform/main.c
Log:
rename g.transform as m.transform, part 2

Modified: grass/trunk/gui/wxpython/docs/wxGUI.GCP_Manager.html
===================================================================
--- grass/trunk/gui/wxpython/docs/wxGUI.GCP_Manager.html	2011-09-28 11:58:49 UTC (rev 48534)
+++ grass/trunk/gui/wxpython/docs/wxGUI.GCP_Manager.html	2011-09-28 12:04:13 UTC (rev 48535)
@@ -309,7 +309,7 @@
 <p>
 <em>
   <a href="i.rectify.html">i.rectify</a>,
-  <a href="g.transform.html">g.transform</a>
+  <a href="m.transform.html">m.transform</a>
 </em>
 
 <h2>AUTHORS</h2>

Modified: grass/trunk/gui/wxpython/gui_modules/gcpmanager.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gcpmanager.py	2011-09-28 11:58:49 UTC (rev 48534)
+++ grass/trunk/gui/wxpython/gui_modules/gcpmanager.py	2011-09-28 12:04:13 UTC (rev 48535)
@@ -1577,7 +1577,7 @@
     
     def RMSError(self, xygroup, order):
         """
-        Uses g.transform to calculate forward and backward error for each used GCP
+        Uses m.transform to calculate forward and backward error for each used GCP
         in POINTS file and insert error values into GCP list.
         Calculates total forward and backward RMS error for all used points
         """
@@ -1591,7 +1591,7 @@
         # get list of forward and reverse rms error values for each point
         self.grwiz.SwitchEnv('source')
         
-        ret = gcmd.RunCommand('g.transform',
+        ret = gcmd.RunCommand('m.transform',
                               parent = self,
                               read = True,
                               group = xygroup,
@@ -1604,7 +1604,7 @@
         else:
             gcmd.GError(parent = self,
                         message=_('Could not calculate RMS Error.\n'
-                                  'Possible error with g.transform.'))
+                                  'Possible error with m.transform.'))
             return
         
         # insert error values into GCP list for checked items
@@ -1702,7 +1702,7 @@
         self.grwiz.SwitchEnv('source')
         
         if map == 'source':
-            ret = gcmd.RunCommand('g.transform',
+            ret = gcmd.RunCommand('m.transform',
                                   parent = self,
                                   read = True,
                                   group = self.xygroup,
@@ -1711,7 +1711,7 @@
                                   coords = coord_file)
 
         elif map == 'target':
-            ret = gcmd.RunCommand('g.transform',
+            ret = gcmd.RunCommand('m.transform',
                                   parent = self,
                                   read = True,
                                   group = self.xygroup,
@@ -1729,7 +1729,7 @@
         else:
             gcmd.GError(parent = self,
                         message=_('Could not calculate new extends.\n'
-                                  'Possible error with g.transform.'))
+                                  'Possible error with m.transform.'))
             return
 
         # fist corner

Modified: grass/trunk/misc/m.transform/Makefile
===================================================================
--- grass/trunk/misc/m.transform/Makefile	2011-09-28 11:58:49 UTC (rev 48534)
+++ grass/trunk/misc/m.transform/Makefile	2011-09-28 12:04:13 UTC (rev 48535)
@@ -1,6 +1,6 @@
 MODULE_TOPDIR = ../..
 
-PGM = g.transform
+PGM = m.transform
 
 LIBES = $(IMAGERYLIB) $(GISLIB) $(MATHLIB)
 DEPENDENCIES = $(IMAGERYDEP) $(GISDEP)

Deleted: grass/trunk/misc/m.transform/g.transform.html
===================================================================
--- grass/trunk/misc/m.transform/g.transform.html	2011-09-28 11:58:49 UTC (rev 48534)
+++ grass/trunk/misc/m.transform/g.transform.html	2011-09-28 12:04:13 UTC (rev 48535)
@@ -1,67 +0,0 @@
-<H2>DESCRIPTION</H2>
-
-<EM>g.transform</EM> is an utility to compute transformation
-based upon GCPs and output error measurements.
-
-
-<H2>NOTES</H2>
-
-For coordinates given with the <b>coords</b> file option or fed from
-<tt>stdin</tt>, the input format is "x y" with one coordinate pair per
-line.
-
-<p>
-The transformations are:
-<p>
-order=1:
-<div class="code"><pre>
-    e = [E0 E1][1].[1]
-        [E2  0][e] [n]
-   
-    n = [N0 N1][1].[1]
-        [N2  0][e] [n]
-</pre></div>
-
-order=2:
-<div class="code"><pre>
-    e = [E0 E1 E3][1 ] [1 ]
-        [E2 E4  0][e ].[n ]
-        [E5  0  0][e&sup2;] [n&sup2;]
-   
-    n = [N0 N1 N3][1 ] [1 ]
-        [N2 N4  0][e ].[n ]
-        [N5  0  0][e&sup2;] [n&sup2;]
-</pre></div>
-
-order=3:
-<div class="code"><pre>
-    e = [E0 E1 E3 E6][1 ] [1 ]
-        [E2 E4 E7  0][e ].[n ]
-        [E5 E8  0  0][e&sup2;] [n&sup2;]
-        [E9  0  0  0][e&sup3;] [n&sup3;]
-   
-    n = [N0 N1 N3 N6][1 ] [1 ]
-        [N2 N4 N7  0][e ].[n ]
-        [N5 N8  0  0][e&sup2;] [n&sup2;]
-        [N9  0  0  0][e&sup3;] [n&sup3;]
-</pre></div>
-
-["." = dot-product, (AE).N = N'EA.]
-<p>
-In other words, order=1 and order=2 are equivalent to order=3 with
-the higher coefficients equal to zero.
-
-
-<H2>SEE ALSO</H2>
-
-<EM><A HREF="i.rectify.html">i.rectify</A></EM>
-
-
-<H2>AUTHORS</H2>
-
-Brian J. Buckley<br>
-Glynn Clements<br>
-Hamish Bowman
-
-<p>
-<i>Last changed: $Date$</i></p>

Copied: grass/trunk/misc/m.transform/m.transform.html (from rev 48534, grass/trunk/misc/m.transform/g.transform.html)
===================================================================
--- grass/trunk/misc/m.transform/m.transform.html	                        (rev 0)
+++ grass/trunk/misc/m.transform/m.transform.html	2011-09-28 12:04:13 UTC (rev 48535)
@@ -0,0 +1,67 @@
+<H2>DESCRIPTION</H2>
+
+<EM>m.transform</EM> is an utility to compute transformation
+based upon GCPs and output error measurements.
+
+
+<H2>NOTES</H2>
+
+For coordinates given with the <b>coords</b> file option or fed from
+<tt>stdin</tt>, the input format is "x y" with one coordinate pair per
+line.
+
+<p>
+The transformations are:
+<p>
+order=1:
+<div class="code"><pre>
+    e = [E0 E1][1].[1]
+        [E2  0][e] [n]
+   
+    n = [N0 N1][1].[1]
+        [N2  0][e] [n]
+</pre></div>
+
+order=2:
+<div class="code"><pre>
+    e = [E0 E1 E3][1 ] [1 ]
+        [E2 E4  0][e ].[n ]
+        [E5  0  0][e&sup2;] [n&sup2;]
+   
+    n = [N0 N1 N3][1 ] [1 ]
+        [N2 N4  0][e ].[n ]
+        [N5  0  0][e&sup2;] [n&sup2;]
+</pre></div>
+
+order=3:
+<div class="code"><pre>
+    e = [E0 E1 E3 E6][1 ] [1 ]
+        [E2 E4 E7  0][e ].[n ]
+        [E5 E8  0  0][e&sup2;] [n&sup2;]
+        [E9  0  0  0][e&sup3;] [n&sup3;]
+   
+    n = [N0 N1 N3 N6][1 ] [1 ]
+        [N2 N4 N7  0][e ].[n ]
+        [N5 N8  0  0][e&sup2;] [n&sup2;]
+        [N9  0  0  0][e&sup3;] [n&sup3;]
+</pre></div>
+
+["." = dot-product, (AE).N = N'EA.]
+<p>
+In other words, order=1 and order=2 are equivalent to order=3 with
+the higher coefficients equal to zero.
+
+
+<H2>SEE ALSO</H2>
+
+<EM><A HREF="i.rectify.html">i.rectify</A></EM>
+
+
+<H2>AUTHORS</H2>
+
+Brian J. Buckley<br>
+Glynn Clements<br>
+Hamish Bowman
+
+<p>
+<i>Last changed: $Date$</i></p>

Modified: grass/trunk/misc/m.transform/main.c
===================================================================
--- grass/trunk/misc/m.transform/main.c	2011-09-28 11:58:49 UTC (rev 48534)
+++ grass/trunk/misc/m.transform/main.c	2011-09-28 12:04:13 UTC (rev 48535)
@@ -1,7 +1,7 @@
 
 /****************************************************************************
  *
- * MODULE:       g.transform
+ * MODULE:       m.transform   (nee g.transform)
  * AUTHOR(S):    Brian J. Buckley
  *               Glynn Clements
  *               Hamish Bowman



More information about the grass-commit mailing list