[GRASSweb-list]markus: web/grass51 examples.html,NONE,1.1

grass at intevation.de grass at intevation.de
Wed Oct 30 11:33:35 EST 2002


Author: markus

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

Added Files:
	examples.html 
Log Message:
added first 5.1 examples

--- NEW FILE: examples.html ---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
   <DEFANGED_meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
   <DEFANGED_meta name="Author" content="Markus Neteler">
   <title>GRASS 5.1 Usage examples</title>
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#0000EF" vlink="#59188E" alink="#FF0000">

<font face="Arial, Helvetica">
<h1>GRASS 5.1 Usage Examples</h1>

GRASS 5.1 is currently under development. It is neighter complete (it still
contains only a few modules) nor it is intended to productional usage. 
Development releases are provided for people who want to help test, debug,
and improve GRASS 5.1. Knowing this, please read on.

<h2>Following modules are available at time of this writing</h2>
(see timestamp at bottom)

<ul>
<li>d.erase d.m d.mon d.path d.rast d.vect d.what.vect d.zoom
<li>db.columns db.createdb  db.describe db.dropdb    db.execute db.tables
    db.connect db.databases db.drivers db.droptable db.select
<li>g.gisenv   g.mapsets  g.region
<li>nviz
<li>v.build v.clean.test  v.in.ascii  v.rand.poly
    v.topo.check v.build.polylines v.convert v.info v.shape.register v.to.rast
    v.category v.digit v.out.ascii v.shape.unregister v.clean v.extract
    v.out.ogr v.surf.rst
</ul>

<h2>Example 1: Registration of a map in SHAPE format</h2>

Maps in SHAPE format can be used directly in GRASS 5.1 without importing
them.

<pre>
#register SHAPE files (this will copy them into the LOCATION):

v.shape.register markveggy.shp
 Found following integer field(s) in SHAPE file:
 VEGCNP_
 VEGCNP_ID
 which field do you want to use? Enter name from above list:
 VEGCNP_ID
 markveggy.shp is registered now.
 The SHAPE files (.shp, shx and .dbf) were copied to:
   /ssi0/ssi/neteler/grassdata/botswanaLL/shp
 Consider to run v.build:
     v.build markveggy.shp

#build pseudo-topology for SHAPE
 v.build markveggy.shp

#establish database connection (get path from v.shape.register messages):
#here we use the DBF driver:
 db.connect database=/ssi0/ssi/neteler/grassdata/botswanaLL/shp

#look at the related dbf table:
 db.describe table=markveggy

#get info about vector map:
 v.info markveggy.shp

#look at the map:
 d.vect markveggy.shp
</pre>


<h2>Example 2: Extract vector data from map to new map with SQL statements</h2>

<pre>
v.extract markveggy.shp output=markveggy.1 where="VEGTYPE = PS"
</pre>

<!-- FOOTER -->
<hr>
<DIV ALIGN=right>&copy; 2002 GRASS Development Team<br>
<a href="mailto:weblist at grass.itc.it">Comments</a> about this page | Back <a href=index.html>5.1 HOME</a><br>
<i>Last change:
$Date: 2002/10/30 16:33:33 $
</i></DIV>

</body>
</html>





More information about the grass-web mailing list