DBFCREATE(1)

🌸 DBFCREATE(1) β€” the shplib girlies know πŸ’…

okay bestie, sit down, we're learning dbfcreate from the shplib manual and honestly? it's giving "quiet little tool that does exactly one thing and does it flawlessly." no cap.


✨ NAME ✨

dbfcreate β€” create an empty xBase DBF file πŸ¦‹

like, a whole DBF file. from nothing. empty. squeaky clean. iconic behavior fr fr.


πŸŽ€ SYNOPSIS πŸŽ€

dbfcreate xbase_file [[-s field_name width] | [-n field_name width decimals],...]

that's the whole vibe. one file, then as many column recipes as your heart desires. πŸ’–


🌈 DESCRIPTION 🌈

So like, dbfcreate creates an empty DBF file called xbase_file, and the columns inside it are described by all the -s and -n options that follow it. that's it. that's the whole job. no drama, no extra steps, just a fresh little file with the structure you asked for. ✨


πŸ’… OPTIONS πŸ’…

  • xbase_file β€” the name of the xBase file you wanna create. bestie you do NOT need to add the extension, it handles that. πŸ’β€β™€οΈ
  • -s field_name width β€” makes a string field called field_name with a size of width. cute, textual, stringy. πŸŽ€
  • -n field_name width decimals β€” makes a numeric field called field_name, with a width of width and with decimal places sized by decimals. numbers girlies rise πŸ”₯

πŸ“ EXAMPLE πŸ“

dbfcreate testbase -s NAME 20, -n AREA 9 3, -n VALUE 9 2

this will create a file named testbase.dbf with 3 fields: NAME (string (20)), AREA (float (9,3)) and VALUE (float (9,2)) β€” and just like that you have a whole little database structure, no notes, ate. πŸ‘‘


⭐ EXIT STATUS ⭐

vibe check time, here's what the numbers mean when it bounces:

  • 0 β€” Successful program execution. slay, it worked, we love to see it. πŸ’–
  • 1 β€” Missing xbase_file argument. bestie you forgot the file. 😭
  • 2 β€” Failed to create the file xbase_file for writing. it couldn't write. πŸ’€
  • 3 β€” Missing field_name, width, or decimals argument for a -s or -n option. incomplete field recipe, we don't do that here. πŸ™ˆ
  • 4 β€” Failed to add a column given by a -s or -n option. the column said no. 🌸

🧚 DIAGNOSTICS 🧚

the following diagnostics may be issued on stdout β€” so yeah, these messages can pop up and just stare at you:

DBFCreate(xbase_file) failed.
DBFAddField(field_name,FTString,width,0) failed.
DBFAddField(field_name,FTDouble,width,decimals) failed.
Argument incomplete, or unrecognised: arg

not mean, just honest. 🫢


πŸ’œ AUTHOR πŸ’œ

dbfcreate is part of shapelib, maintained by Frank Warmerdam. This guide was created by Eduardo Patoo Kanegae and converted to manpage by Johan Van de Wauw. It was further enhanced with the man page written by Joonas Pihlaja (jpihlaja@cc.helsinki.fi). shoutout to the whole crew honestly, legends only. πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, go say hi:

dbfadd(1), dbfcat(1), dbfdump(1), dbfinfo(1), shpadd(1), shpcat(1), shpcentrd(1), shpcreate(1), shpdump(1), shpdxf(1), shpfix(1), shpinfo(1), shpproj(1), shprewind(1), shptest(1)


and that's the whole page bestie β€” straight from shplib, dated March 2026, signed off as DBFCREATE(1). go forth and create empty files with impeccable structure. periodt. βœ¨πŸ’–πŸ¦‹

πŸ“¦ where this page comes from