Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > dcaf9bd555d1ce386641f56c6523d3ed > files > 91

grads-2.0.2-1.fc18.i686.rpm

<!--Copyright (C) 1988-2005 by the Institute of Global Environment and Society (IGES). See file COPYRIGHT for more information.-->

<html>
<head>
<title>GrADS command: query dbf</title>
</head>
<body bgcolor="e0f0ff" text="#000000">

<H2><B>q  dbf</B></H2>
<P>
<code>q  dbf <i>shapefile </i></code>
<p>
Lists the contents of a shapefile attribute database. 
  <code><i>shapefile</i> </code>is the name of the shapefile.  It is not necessary to include the file extension (.dbf) on the end of <code><i>shapefile</i></code>, just the filename root is adequate.<br>
  <codoe>
  <br>
<h3>Usage Notes</h3>
<p>This command is available with GrADS version 2.0.a8 or later.</p>
<p>If you put the three shapefile components  (*.shp, *.shx, and *.dbf) in the GrADS data directory (pointed to by the <a href="gradcomdgrads.html#env">GADDIR environment variable</a>), then it is not necessary to include the full path in <code><i>shapefile</i></code>. </p>
<p>The first line of output contains a comma-delimited list of the names of all the attributes for each record in the database. Subsequent lines contain the comma-delimited list of all the attribute values for each record. </p>
<p>A companion command, <code><a href="gradcomdqdbf.html">q shp</a></code>, lists the contents of the shapefile. There is a 1:1 correspondence between elements in the shapefile and records in the database. </p>
<p>Please see the documentation page on <a href="shapefiles.html">shapefiles</a> for more details. </p>
<h3>Examples </h3>
<pre>ga-&gt; q dbf /home/GIS/climatedivs/divisions <br>
RECORD#,AREA,PERIMETER,CLIMDIVS_,ST,DIV,NAME,DIVISION_I<br>
0,4.463,11.489,2,MN,2,NORTH CENTRAL,2102<br>
1,0.988,9.344,3,WA,3,PUGET SOUND LOWLANDS,4503<br>
2,3.066,16.450,4,WA,4,E OLYMPIC CASCADE FOOTHILLS,4504<br>
3,3.099,12.733,5,WA,6,EAST SLOPE CASCADES,4506<br>
4,2.030,8.359,6,WA,7,OKANOGAN BIG BEND,4507<br>
5,1.347,5.964,7,ID,1,PANHANDLE,1001
.<br>.<br>.<br>385,0.958,5.437,59,OR,4,NORTHERN CASCADES,3504<br>386,2.712,9.973,49,OR,6,NORTH CENTRAL,3506</pre>
</body>
</html>