[GRASSweb-list]markus: web/grass51/tutorial geom_storage.html,1.19,1.20 index.html,1.21,1.22

grass at intevation.de grass at intevation.de
Fri Sep 19 06:00:10 EDT 2003


Author: markus

Update of /grassrepository/web/grass51/tutorial
In directory doto:/tmp/cvs-serv10899

Modified Files:
	geom_storage.html index.html 
Log Message:
added points vector map geneation example

Index: geom_storage.html
===================================================================
RCS file: /grassrepository/web/grass51/tutorial/geom_storage.html,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- geom_storage.html	12 Sep 2003 08:05:09 -0000	1.19
+++ geom_storage.html	19 Sep 2003 10:00:07 -0000	1.20
@@ -302,6 +302,55 @@
 It will open a window showing the attributes for the selected point. If you have permissions
 to modify the table, you could even modify the attributes now in this popup-window.
 
+<p><table width="100%" cellpadding="3" border="0">
+<tr><td align="left" bgcolor="#B0F0B0"><font color="#00000"><big><b>
+<a name="sites2"></a>
+Generating vector geometry from XY or XYZ file
+<DIV ALIGN=right><a href="#sites">[UP]</a></DIV>
+</b></big></font></td></tr></table>
+
+If you receive a file with coordinate pairs (and maybe z elevation),
+you can easily generate a vector map. Store the points into an
+ASCII file, e.g. 'coords.txt' separated by '|' (pipe character).<br>
+For 2D maps:
+
+<div class="code"><pre>
+  1664619|5103481
+  1664473|5095782
+  1664273|5101919
+  1663427|5105234
+  1663709|5102614
+</pre></div>
+<P>
+Import into GRASS:
+<div class="code"><pre>
+cat coords.txt | v.in.ascii out=my2dmap
+#add missing category numbers (to be able to assign attributes)
+v.category in=my2dmap out=my2dmap_final op=add
+v.category my2dmap_final op=report
+</pre></div>
+<P>
+or, 3D case:
+
+<div class="code"><pre>
+  1664619|5103481|445
+  1664473|5095782|534
+  1664273|5101919|532
+  1663427|5105234|454
+  1663709|5102614|525
+</pre></div>
+
+<P>
+Import into GRASS:
+<div class="code"><pre>
+cat coords.txt | v.in.ascii -z out=my3dmap
+#add missing category numbers (to be able to assign attributes)
+v.category in=my3dmap out=my3dmap_final op=add
+v.category my3dmap_final op=report
+</pre></div>
+<P>
+Finally, with 'v.db.connect' an attribute table can be assigned.
+
 <hr>
 <P>
 Further <a href=links.html>Links</a> (related software, SQL reference etc).

Index: index.html
===================================================================
RCS file: /grassrepository/web/grass51/tutorial/index.html,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- index.html	12 Sep 2003 08:05:09 -0000	1.21
+++ index.html	19 Sep 2003 10:00:07 -0000	1.22
@@ -52,6 +52,7 @@
     using PostGIS</a>
   <li><a href="geom_storage.html#OGR">Geometry access through OGR</a>
   <li><a href="geom_storage.html#sites">Generating vector geometry from spreadsheet table</a>
+  <li><a href="geom_storage.html#sites2">Generating vector geometry from XY or XYZ file</a>
  </ol>
 
  <li><a href="attrib_storage.html">Attribute management with connections to DBMS</a>





More information about the grass-web mailing list