[GRASSweb-list]markus: web/grass51/tutorial ex_basic.html,1.4,1.5 examples.html,1.21,1.22

grass at intevation.de grass at intevation.de
Wed Mar 5 08:33:51 EST 2003

Author: markus

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

Modified Files:
	ex_basic.html examples.html 
Log Message:
added v.in.ogr import

Index: ex_basic.html
RCS file: /grassrepository/web/grass51/tutorial/ex_basic.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- ex_basic.html	28 Feb 2003 20:00:04 -0000	1.4
+++ ex_basic.html	5 Mar 2003 13:33:49 -0000	1.5
@@ -51,6 +51,7 @@
     3D vector visualization</a>
 <li><a href="#v.extract">Example: Extract vector data from map to new map
    with SQL statements (PostGRASS)</a>
+<li><a href="#ogr_import">Example: Vector map import data using OGR</a>
 <li><a href="#ogr_export">Example: Vector map export data using OGR</a>
 <li><a href="#SQL_queries">Example: SQL queries</a>
 <li><a href="#map_from_points">Example: Generating a vector map from a point
@@ -251,6 +252,46 @@
 db.columns tab=markveggy
 d.vect markveggy.1 att=vegtype display=attr lcolor=red
+<p><table width="100%" cellpadding="3" border="0">
+<tr><td align="left" bgcolor="#B0F0B0"><font color="#00000"><big><b>
+<a name="ogr_import"></a>
+Example: Vector map import data using OGR
+<DIV ALIGN=right><a href="#toc">[UP]</a></DIV>
+Import of vector maps supported by OGR (such as SHAPE, UK NTF, SDTS, TIGER,
+.IHO S-57 (ENC), MapInfo File, DGN, GML, AVCBin, REC, ...) can be done with
+'v.in.ogr'. It is important to note that a second cleaning step is required
+to clean such non-topological formats (SHAPE, MIF etc) to topology for
+vector areas:
+<!-- Normal.mif is from http://www.opengis.org/techno/interop/ -->
+<!-- wdb2_unep.mif is from UNEP/GRID -->
+<div class="code"><pre>
+v.in.ogr d=wdb2_unep.mif out=wdb2 lay=wdb2_unep
+If the map contains areas, we must clean off collinear boundary vectors as
+well as multiple centroids with 'v.clean'. This is needed, if you see for
+example the message <br>
+<tt>WARNING: 2. centroid found in area 2</tt>
+<div class="code"><pre>
+v.clean in=wdb2 out=wdb2_clean tool=rmdac 
+Duplicate boundaries are corrected with:
+<div class="code"><pre>
+v.clean in=wdb2_clean out=wdb2_clean2 tool=rmdupl
+d.vect wdb2_clean2
 <p><table width="100%" cellpadding="3" border="0">
 <tr><td align="left" bgcolor="#B0F0B0"><font color="#00000"><big><b>

Index: examples.html
RCS file: /grassrepository/web/grass51/tutorial/examples.html,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- examples.html	28 Feb 2003 20:00:04 -0000	1.21
+++ examples.html	5 Mar 2003 13:33:49 -0000	1.22
@@ -59,7 +59,7 @@
  <li>Map generating: v.digit v.extract v.patch v.surf.rst 
  <li>Import/Export: v.in.ascii v.convert v.in.ogr v.in.sites
       v.out.ascii v.out.ogr
- <li>Networking: v.net.iso v.net.alloc
+ <li>Networking: v.net.iso v.net.alloc v.net.salesman  v.net.steiner
  <li>Misc: v.info v.to.rast v.transform

More information about the grass-web mailing list