PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ DBFAddField()

int SHPAPI_CALL DBFAddField ( DBFHandle  hDBF,
const char *  pszFieldName,
DBFFieldType  eType,
int  nWidth,
int  nDecimals 
)

Definition at line 788 of file dbfopen.c.

791 {
792  char chNativeType = 'C';
793 
794  if( eType == FTLogical )
795  chNativeType = 'L';
796  else if( eType == FTDate )
797  chNativeType = 'D';
798  else if( eType == FTString )
799  chNativeType = 'C';
800  else
801  chNativeType = 'N';
802 
803  return DBFAddNativeFieldType( psDBF, pszFieldName, chNativeType,
804  nWidth, nDecimals );
805 }
int SHPAPI_CALL DBFAddNativeFieldType(DBFHandle psDBF, const char *pszFieldName, char chType, int nWidth, int nDecimals)
Definition: dbfopen.c:835
@ FTString
Definition: shapefil.h:639
@ FTLogical
Definition: shapefil.h:642
@ FTDate
Definition: shapefil.h:643

References DBFAddNativeFieldType(), FTDate, FTLogical, and FTString.

Referenced by ShpDumperOpenTable().

Here is the call graph for this function:
Here is the caller graph for this function: