PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ DBFIsRecordDeleted()

int SHPAPI_CALL DBFIsRecordDeleted ( DBFHandle  psDBF,
int  iShape 
)

Definition at line 1750 of file dbfopen.c.

1752 {
1753 /* -------------------------------------------------------------------- */
1754 /* Verify selection. */
1755 /* -------------------------------------------------------------------- */
1756  if( iShape < 0 || (psDBF->nRecords > 0 && iShape >= psDBF->nRecords) )
1757  return TRUE;
1758 
1759 /* -------------------------------------------------------------------- */
1760 /* Have we read the record? */
1761 /* -------------------------------------------------------------------- */
1762  if( !DBFLoadRecord( psDBF, iShape ) )
1763  return FALSE;
1764 
1765 /* -------------------------------------------------------------------- */
1766 /* '*' means deleted. */
1767 /* -------------------------------------------------------------------- */
1768  return psDBF->pszCurrentRecord[0] == '*';
1769 }
static int DBFLoadRecord(DBFHandle psDBF, int iRecord)
Definition: dbfopen.c:257
#define TRUE
Definition: dbfopen.c:73
#define FALSE
Definition: dbfopen.c:72
char * pszCurrentRecord
Definition: shapefil.h:610
int nRecords
Definition: shapefil.h:594

References DBFLoadRecord(), FALSE, DBFInfo::nRecords, DBFInfo::pszCurrentRecord, and TRUE.

Referenced by ShpLoaderGenerateSQLRowStatement().

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