PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ DBFIsRecordDeleted()

int SHPAPI_CALL DBFIsRecordDeleted ( DBFHandle  psDBF,
int  iShape 
)

Definition at line 1674 of file dbfopen.c.

1675 {
1676  /* -------------------------------------------------------------------- */
1677  /* Verify selection. */
1678  /* -------------------------------------------------------------------- */
1679  if (iShape < 0 || (psDBF->nRecords > 0 && iShape >= psDBF->nRecords))
1680  return TRUE;
1681 
1682  /* -------------------------------------------------------------------- */
1683  /* Have we read the record? */
1684  /* -------------------------------------------------------------------- */
1685  if (psDBF->nRecords > 0 && !DBFLoadRecord(psDBF, iShape))
1686  return FALSE;
1687 
1688  /* -------------------------------------------------------------------- */
1689  /* '*' means deleted. */
1690  /* -------------------------------------------------------------------- */
1691  return psDBF->pszCurrentRecord[0] == '*';
1692 }
static int DBFLoadRecord(DBFHandle psDBF, int iRecord)
Definition: dbfopen.c:286
#define TRUE
Definition: dbfopen.c:169
#define FALSE
Definition: dbfopen.c:168

References DBFLoadRecord(), FALSE, and TRUE.

Referenced by ShpLoaderGenerateSQLRowStatement().

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