PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ DBFIsRecordDeleted()

int SHPAPI_CALL DBFIsRecordDeleted ( DBFHandle  psDBF,
int  iShape 
)

Definition at line 1732 of file dbfopen.c.

1734 {
1735 /* -------------------------------------------------------------------- */
1736 /* Verify selection. */
1737 /* -------------------------------------------------------------------- */
1738  if( iShape < 0 || (psDBF->nRecords > 0 && iShape >= psDBF->nRecords) )
1739  return TRUE;
1740 
1741 /* -------------------------------------------------------------------- */
1742 /* Have we read the record? */
1743 /* -------------------------------------------------------------------- */
1744  if( psDBF->nRecords > 0 && !DBFLoadRecord( psDBF, iShape ) )
1745  return FALSE;
1746 
1747 /* -------------------------------------------------------------------- */
1748 /* '*' means deleted. */
1749 /* -------------------------------------------------------------------- */
1750  return psDBF->pszCurrentRecord[0] == '*';
1751 }
static int DBFLoadRecord(DBFHandle psDBF, int iRecord)
Definition: dbfopen.c:291
#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: