Formal metadata information and software
tcldbf is an extension of Tcl/Tk that provides the Tcl script writer some ability to read and write DBF files. Its core is a set of C wrappers that read dBase files using Frank Warmerdam's shapelib and make the results available to Tcl procedures.
tcldbf-1.3.tgz | gzipped tar file | |
tcldbf-1.3.zip | zip file |
dbf d -open input_file ?-readonly?
readonly
is specified, the file cannot be updated.
dbf d -create output_file
$d add label type width ?decimals?
$d update row field value
$d insert row | end value0 ?value1 value2 ...?
$d info
{record_count field_count}
$d fields
{name type native-type width prec}
$d values name
$d record rowid
$d close
$d forget
You'll need Tcl/Tk installed on your system in order to make use of this software. You can download Tcl/Tk from ActiveState, the company that currently provides an excellent free distribution:
<http://www.activestate.com/Products/ActiveTcl/>
Peter N. Schweitzer Mail Stop 954, National Center U.S. Geological Survey Reston, VA 20192 Tel: (703) 648-6533 FAX: (703) 648-6252 Email: pschweitzer@usgs.gov