1DBFCREATE(1)                       shapelib                       DBFCREATE(1)
2
3
4

NAME

6       dbfcreate - Create an empty xBase DBF file
7

SYNOPSIS

9       dbfcreate xbase_file [[-s field_name width] | [-n field_name width dec‐
10       imals],...]
11

DESCRIPTION

13       Creates an empty DBF file called xbase_file with columns  described  by
14       all the -s and -n options that follow.
15

OPTIONS

17       xbase_file
18              the  name  of  xBase file to be created. Doesn´t need the exten‐
19              sion.
20
21       -s field_name width
22              creates a string field with name field_name and size width.
23
24       -n field_name width decimals
25              creates a numeric field with name field_name, width of width and
26              with decimals places sized by decimals.
27

EXAMPLE

29       dbfcreate testbase -s NAME 20, -n AREA 9 3, -n VALUE 9 2
30
31       this  will create a file named testbase.dbf with 3 fields: NAME (string
32       (20)), AREA (float (9,3)) and VALUE (float (9,2))
33

EXIT STATUS

35       0      Successful program execution.
36
37       1      Missing xbase_file argument.
38
39       2      Failed to create the file xbase_file for writing.
40
41       3      Missing field_name, width, or decimals argument for a -s  or  -n
42              option.
43
44       4      Failed to add a column given by a -s or -n option.
45

DIAGNOSTICS

47       The following diagnostics may be issued on stdout:
48
49       DBFCreate(xbase_file) failed.
50
51       DBFAddField(field_name,FTString,width,0) failed.
52
53       DBFAddField(field_name,FTDouble,width,decimals) failed.
54
55       Argument incomplete, or unrecognised: arg
56

AUTHOR

58       dbfcreate  is  part  of  shapelib,  maintained by Frank Warmerdam. This
59       guide was created by Eduardo Patoo Kanegae and converted to manpage  by
60       Johan Van de Wauw. It was further enhanced with the man page written by
61       Joonas Pihlaja (jpihlaja@cc.helsinki.fi).
62

SEE ALSO

64       dbfadd(1), dbfcat(1),  dbfdump(1),  dbfinfo(1),  shpadd(1),  shpcat(1),
65       shpcentrd(1),    shpcreate(1),    shpdump(1),   shpdxf(1),   shpfix(1),
66       shpinfo(1), shpproj(1), shprewind(1), shptest(1)
67
68
69
70                                  March 2019                      DBFCREATE(1)
Impressum