PostGIS  2.2.7dev-r@@SVN_REVISION@@
int SHPAPI_CALL DBFMarkRecordDeleted ( DBFHandle  psDBF,
int  iShape,
int  bIsDeleted 
)

Definition at line 1753 of file dbfopen.c.

References DBFLoadRecord(), FALSE, and TRUE.

1756 {
1757  char chNewFlag;
1758 
1759 /* -------------------------------------------------------------------- */
1760 /* Verify selection. */
1761 /* -------------------------------------------------------------------- */
1762  if( iShape < 0 || iShape >= psDBF->nRecords )
1763  return FALSE;
1764 
1765 /* -------------------------------------------------------------------- */
1766 /* Is this an existing record, but different than the last one */
1767 /* we accessed? */
1768 /* -------------------------------------------------------------------- */
1769  if( !DBFLoadRecord( psDBF, iShape ) )
1770  return FALSE;
1771 
1772 /* -------------------------------------------------------------------- */
1773 /* Assign value, marking record as dirty if it changes. */
1774 /* -------------------------------------------------------------------- */
1775  if( bIsDeleted )
1776  chNewFlag = '*';
1777  else
1778  chNewFlag = ' ';
1779 
1780  if( psDBF->pszCurrentRecord[0] != chNewFlag )
1781  {
1782  psDBF->bCurrentRecordModified = TRUE;
1783  psDBF->bUpdated = TRUE;
1784  psDBF->pszCurrentRecord[0] = chNewFlag;
1785  }
1786 
1787  return TRUE;
1788 }
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: