## q dbf

`q dbf shapefile`

Lists the contents of a shapefile attribute database. `shapefile` is the name of the shapefile. It is not necessary to include the file extension (.dbf) on the end of `shapefile`, just the filename root is adequate.

### Usage Notes

This command is available with GrADS version 2.0.a8 or later.

If you put the three shapefile components (*.shp, *.shx, and *.dbf) in the GrADS data directory (pointed to by the GADDIR environment variable), then it is not necessary to include the full path in `shapefile`.

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.

A companion command, `q shp`, lists the contents of the shapefile. There is a 1:1 correspondence between elements in the shapefile and records in the database.

Please see the documentation page on shapefiles for more details.

### Examples

    ga-> q dbf /home/GIS/climatedivs/divisions

    RECORD#,AREA,PERIMETER,CLIMDIVS_,ST,DIV,NAME,DIVISION_I

    0,4.463,11.489,2,MN,2,NORTH CENTRAL,2102

    1,0.988,9.344,3,WA,3,PUGET SOUND LOWLANDS,4503

    2,3.066,16.450,4,WA,4,E OLYMPIC CASCADE FOOTHILLS,4504

    3,3.099,12.733,5,WA,6,EAST SLOPE CASCADES,4506

    4,2.030,8.359,6,WA,7,OKANOGAN BIG BEND,4507

    5,1.347,5.964,7,ID,1,PANHANDLE,1001
    .
    .
    .
    385,0.958,5.437,59,OR,4,NORTHERN CASCADES,3504
    386,2.712,9.973,49,OR,6,NORTH CENTRAL,3506