PostGIS  2.1.10dev-r@@SVN_REVISION@@
int SHPAPI_CALL DBFIsRecordDeleted ( DBFHandle  psDBF,
int  iShape 
)

Definition at line 1729 of file dbfopen.c.

References DBFLoadRecord(), FALSE, and TRUE.

Referenced by ShpLoaderGenerateSQLRowStatement().

1731 {
1732 /* -------------------------------------------------------------------- */
1733 /* Verify selection. */
1734 /* -------------------------------------------------------------------- */
1735  if( iShape < 0 || iShape >= psDBF->nRecords )
1736  return TRUE;
1737 
1738 /* -------------------------------------------------------------------- */
1739 /* Have we read the record? */
1740 /* -------------------------------------------------------------------- */
1741  if( !DBFLoadRecord( psDBF, iShape ) )
1742  return FALSE;
1743 
1744 /* -------------------------------------------------------------------- */
1745 /* '*' means deleted. */
1746 /* -------------------------------------------------------------------- */
1747  return psDBF->pszCurrentRecord[0] == '*';
1748 }
static int DBFLoadRecord(DBFHandle psDBF, int iRecord)
Definition: dbfopen.c:292
#define FALSE
Definition: dbfopen.c:169
#define TRUE
Definition: dbfopen.c:170

Here is the call graph for this function:

Here is the caller graph for this function: