PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ DBFIsRecordDeleted()

int SHPAPI_CALL DBFIsRecordDeleted ( DBFHandle  psDBF,
int  iShape 
)

Definition at line 1728 of file dbfopen.c.

References DBFLoadRecord(), FALSE, and TRUE.

Referenced by ShpLoaderGenerateSQLRowStatement().

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