[GRASS-SVN] r61767 - grass/branches/releasebranch_7_0/vector/v.in.ascii
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Aug 29 02:54:05 PDT 2014
Author: neteler
Date: 2014-08-29 02:54:05 -0700 (Fri, 29 Aug 2014)
New Revision: 61767
Modified:
grass/branches/releasebranch_7_0/vector/v.in.ascii/v.in.ascii.html
Log:
v.in.ascii manual: CSV table import example added
Modified: grass/branches/releasebranch_7_0/vector/v.in.ascii/v.in.ascii.html
===================================================================
--- grass/branches/releasebranch_7_0/vector/v.in.ascii/v.in.ascii.html 2014-08-29 09:53:56 UTC (rev 61766)
+++ grass/branches/releasebranch_7_0/vector/v.in.ascii/v.in.ascii.html 2014-08-29 09:54:05 UTC (rev 61767)
@@ -192,8 +192,30 @@
<p>The module is reading from standard input, using the default '|' (pipe) delimiter.
-<h3>Example 4 - point format mode</h3>
+<h3>Example 4 - point format mode - CSV table</h3>
+Import of a 3D points CSV table ('points3d.csv') with attributes:
+<div class="code"><pre>
+"num","X","Y","Z","T"
+1,2487491.643,5112118.33,120.5,18.62
+2,2481985.459,5109162.78,123.9,18.46
+3,2478284.289,5105331.04,98.3,19.61
+</pre></div>
+<p>Import into GRASS:
+<div class="code"><pre>
+# import: skipping the header line, categories generated automatically,
+# column names defined with type:
+v.in.ascii -z in=points3d.csv out=mypoints3D separator=comma \
+ columns="num integer, x double precision, y double precision, z double precision, temp double precision" \
+ x=2 y=3 z=4 skip=1
+# verify column types
+v.info -c mypoints3D
+# verify table content
+v.db.select mypoints3D
+</pre></div>
+
+<h3>Example 5 - point format mode</h3>
+
Generating a 3D points vector map from DBMS (idcol must be an integer column):<br>
<div class="code"><pre>
echo "select east,north,elev,idcol from mytable" | db.select -c | v.in.ascii in=- -z out=mymap
@@ -204,7 +226,7 @@
The import works for 2D maps as well (no elev column and no '-z' flag).
-<h3>Example 5 - point format mode</h3>
+<h3>Example 6 - point format mode</h3>
Generate a 3D points vector map 'points3d.dat' with attributes as ASCII file:
<div class="code"><pre>
@@ -227,7 +249,7 @@
</pre></div>
-<h3>Example 6 - point format mode</h3>
+<h3>Example 7 - point format mode</h3>
Generate points file by clicking onto the map:
<div class="code"><pre>
@@ -244,7 +266,7 @@
When simply piping the coordinates (and optionally height) without additional column(s)
into <em>v.in.ascii</em>, only the vector map geometry will be generated.
-<h3>Example 7 - point format mode</h3>
+<h3>Example 8 - point format mode</h3>
Convert ground control points into vector points:
<div class="code"><pre>
More information about the grass-commit
mailing list