PostGIS
3.0.6dev-r@@SVN_REVISION@@
◆
DBFMarkRecordDeleted()
int
SHPAPI_CALL
DBFMarkRecordDeleted
(
DBFHandle
psDBF
,
int
iShape
,
int
bIsDeleted
)
Definition at line
1699
of file
dbfopen.c
.
1700
{
1701
char
chNewFlag;
1702
1703
/* -------------------------------------------------------------------- */
1704
/* Verify selection. */
1705
/* -------------------------------------------------------------------- */
1706
if
(iShape < 0 || iShape >= psDBF->nRecords)
1707
return
FALSE
;
1708
1709
/* -------------------------------------------------------------------- */
1710
/* Is this an existing record, but different than the last one */
1711
/* we accessed? */
1712
/* -------------------------------------------------------------------- */
1713
if
(!
DBFLoadRecord
(psDBF, iShape))
1714
return
FALSE
;
1715
1716
/* -------------------------------------------------------------------- */
1717
/* Assign value, marking record as dirty if it changes. */
1718
/* -------------------------------------------------------------------- */
1719
if
(bIsDeleted)
1720
chNewFlag =
'*'
;
1721
else
1722
chNewFlag =
' '
;
1723
1724
if
(psDBF->pszCurrentRecord[0] != chNewFlag)
1725
{
1726
psDBF->bCurrentRecordModified =
TRUE
;
1727
psDBF->bUpdated =
TRUE
;
1728
psDBF->pszCurrentRecord[0] = chNewFlag;
1729
}
1730
1731
return
TRUE
;
1732
}
DBFLoadRecord
static int DBFLoadRecord(DBFHandle psDBF, int iRecord)
Definition:
dbfopen.c:286
TRUE
#define TRUE
Definition:
dbfopen.c:169
FALSE
#define FALSE
Definition:
dbfopen.c:168
References
DBFLoadRecord()
,
FALSE
, and
TRUE
.
Here is the call graph for this function:
loader
dbfopen.c
Generated by
1.9.1