[GRASS-SVN] r55253 - grass/trunk/vector/v.transform
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Feb 28 00:30:57 PST 2013
Author: mmetz
Date: 2013-02-28 00:30:57 -0800 (Thu, 28 Feb 2013)
New Revision: 55253
Modified:
grass/trunk/vector/v.transform/v.transform.html
Log:
v.transform: update manual
Modified: grass/trunk/vector/v.transform/v.transform.html
===================================================================
--- grass/trunk/vector/v.transform/v.transform.html 2013-02-28 08:30:35 UTC (rev 55252)
+++ grass/trunk/vector/v.transform/v.transform.html 2013-02-28 08:30:57 UTC (rev 55253)
@@ -18,25 +18,13 @@
parameters based on their category number. If the parameter cannot be
fetched from the table, default value is used instead.<p>
-<h3>Affine Transformation Matrix</h3>
-The affine transfomation matrix can optionally be printed with the '-m'
-flag. The format of the matrix is:
-<div class="code" style="width:30%;"><pre>
-| x_offset a b |
-| y_offset d e |
-</pre></div>
-
-This format can be used in the <a href="http://postgis.refractions.net/docs/ch06.html#id2904406">Affine() function of PostGIS</a>
-[Affine(geom, a, b, d, e, xoff, yoff)], or directly compared to the
-output of a similar operation performed in R.
-
<h2>EXAMPLE</h2>
<h3>DXF/DWG drawings</h3>
<p>Most DXF/DWG drawings are done within XY coordinate space. To transform
them to a national grid, we can use <em>v.transform</em> together with
-<em>v.rectify</em> and a first-order 4 point transformation.
+<em>v.rectify</em> and a first-order transformation.
<div class="code"><pre>
v.transform -t in=watertowerXY out=watertower_z zscale=0.04 zshift=1320
@@ -48,12 +36,11 @@
Spearfish example with manual table editing for vertical shift:
<div class="code"><pre>
-# create table containing transformation parameters:
-echo "create table archsites_t (cat int, zs double)" | db.execute
-# insert transformation parameters for category 1:
-echo "insert into archsites_t values (1, 1000)" | db.execute
-# insert transformation parameters for category 2 (and so forth):
-echo "insert into archsites_t values (2, 2000)" | db.execute
+# work on own map copy:
+g.copy vect=archsites at PERMANENT,myarchsites
+# add new 'zs' column to later store height of each site:
+v.db.addcolumn myarchsites col="zs double precision"
+v.db.update myarchsites layer=1 column=zs value="cat * 1000"
# perform z transformation:
v.transform -t input=archsites output=myarchsites3d column="zshift:zs" table="archsites_t"
@@ -79,7 +66,7 @@
v.db.select myarchsites
# perform transformation to 3D
-v.transform -t myarchsites output=myarchsites3d column="zshift:zs" table=myarchsites
+v.transform -t myarchsites output=myarchsites3d column="zshift:zs" layer=1
# drop table containing transformation parameters
v.db.dropcolumn myarchsites3d col=zs
</pre></div>
More information about the grass-commit
mailing list