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

Definition at line 1754 of file dbfopen.c.

References DBFLoadRecord(), FALSE, and TRUE.

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

Here is the call graph for this function: