GRASS GIS 8 Programmer's Manual 8.4.1(2025)-45ca3179ab
|
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | SAHooks |
struct | SHPInfo |
struct | tagSHPObject |
struct | shape_tree_node |
struct | SHPTree |
struct | DBFInfo |
Macros | |
#define | TRIM_DBF_WHITESPACE |
#define | DISABLE_MULTIPATCH_MEASURE |
#define | SHPAPI_CALL |
#define | SHPAPI_CALL1(x) |
#define | SHP_CVSID(string) |
#define | SHPT_NULL 0 |
#define | SHPT_POINT 1 |
#define | SHPT_ARC 3 |
#define | SHPT_POLYGON 5 |
#define | SHPT_MULTIPOINT 8 |
#define | SHPT_POINTZ 11 |
#define | SHPT_ARCZ 13 |
#define | SHPT_POLYGONZ 15 |
#define | SHPT_MULTIPOINTZ 18 |
#define | SHPT_POINTM 21 |
#define | SHPT_ARCM 23 |
#define | SHPT_POLYGONM 25 |
#define | SHPT_MULTIPOINTM 28 |
#define | SHPT_MULTIPATCH 31 |
#define | SHPP_TRISTRIP 0 |
#define | SHPP_TRIFAN 1 |
#define | SHPP_OUTERRING 2 |
#define | SHPP_INNERRING 3 |
#define | SHPP_FIRSTRING 4 |
#define | SHPP_RING 5 |
#define | MAX_SUBNODE 4 |
#define | MAX_DEFAULT_TREE_DEPTH 12 |
#define | XBASE_FLDHDR_SZ 32 |
#define | XBASE_FLDNAME_LEN_READ 11 |
#define | XBASE_FLDNAME_LEN_WRITE 10 |
#define | XBASE_FLD_MAX_WIDTH 255 |
Typedefs | |
typedef int * | SAFile |
typedef unsigned long | SAOffset |
typedef struct tagSHPObject | SHPObject |
typedef SHPInfo * | SHPHandle |
typedef struct shape_tree_node | SHPTreeNode |
typedef struct SBNSearchInfo * | SBNSearchHandle |
typedef DBFInfo * | DBFHandle |
Enumerations | |
enum | DBFFieldType { FTString , FTInteger , FTDouble , FTLogical , FTDate , FTInvalid } |
Functions | |
void SHPAPI_CALL | SASetupDefaultHooks (SAHooks *psHooks) |
SHPHandle SHPAPI_CALL | SHPOpen (const char *pszShapeFile, const char *pszAccess) |
SHPHandle SHPAPI_CALL | SHPOpenLL (const char *pszShapeFile, const char *pszAccess, SAHooks *psHooks) |
SHPHandle SHPAPI_CALL | SHPOpenLLEx (const char *pszShapeFile, const char *pszAccess, SAHooks *psHooks, int bRestoreSHX) |
int SHPAPI_CALL | SHPRestoreSHX (const char *pszShapeFile, const char *pszAccess, SAHooks *psHooks) |
void SHPAPI_CALL | SHPSetFastModeReadObject (SHPHandle hSHP, int bFastMode) |
SHPHandle SHPAPI_CALL | SHPCreate (const char *pszShapeFile, int nShapeType) |
SHPHandle SHPAPI_CALL | SHPCreateLL (const char *pszShapeFile, int nShapeType, SAHooks *psHooks) |
void SHPAPI_CALL | SHPGetInfo (SHPHandle hSHP, int *pnEntities, int *pnShapeType, double *padfMinBound, double *padfMaxBound) |
SHPObject SHPAPI_CALL1 * | SHPReadObject (SHPHandle hSHP, int iShape);int SHPAPI_CALL SHPWriteObject(SHPHandle hSHP, int iShape, SHPObject *psObject |
void SHPAPI_CALL | SHPDestroyObject (SHPObject *psObject) |
void SHPAPI_CALL | SHPComputeExtents (SHPObject *psObject) |
SHPObject SHPAPI_CALL1 * | SHPCreateObject (int nSHPType, int nShapeId, int nParts, const int *panPartStart, const int *panPartType, int nVertices, const double *padfX, const double *padfY, const double *padfZ, const double *padfM);SHPObject SHPAPI_CALL1(*) SHPCreateSimpleObject(int nSHPType, int nVertices, const double *padfX, const double *padfY, const double *padfZ |
int SHPAPI_CALL | SHPRewindObject (SHPHandle hSHP, SHPObject *psObject) |
void SHPAPI_CALL | SHPClose (SHPHandle hSHP) |
void SHPAPI_CALL | SHPWriteHeader (SHPHandle hSHP) |
const char SHPAPI_CALL1 * | SHPTypeName (int nSHPType);const char SHPAPI_CALL1(*) SHPPartTypeName(int nPartType |
SHPTree SHPAPI_CALL1 * | SHPCreateTree (SHPHandle hSHP, int nDimension, int nMaxDepth, double *padfBoundsMin, double *padfBoundsMax);void SHPAPI_CALL SHPDestroyTree(SHPTree *hTree |
int SHPAPI_CALL | SHPWriteTree (SHPTree *hTree, const char *pszFilename) |
int SHPAPI_CALL | SHPTreeAddShapeId (SHPTree *hTree, SHPObject *psObject) |
int SHPAPI_CALL | SHPTreeRemoveShapeId (SHPTree *hTree, int nShapeId) |
void SHPAPI_CALL | SHPTreeTrimExtraNodes (SHPTree *hTree) |
int SHPAPI_CALL1 * | SHPTreeFindLikelyShapes (SHPTree *hTree, double *padfBoundsMin, double *padfBoundsMax, int *);int SHPAPI_CALL SHPCheckBoundsOverlap(double *, double *, double *, double *, int |
int SHPAPI_CALL1 * | SHPSearchDiskTree (FILE *fp, double *padfBoundsMin, double *padfBoundsMax, int *pnShapeCount);typedef struct SHPDiskTreeInfo *SHPTreeDiskHandle;SHPTreeDiskHandle SHPAPI_CALL SHPOpenDiskTree(const char *pszQIXFilename, SAHooks *psHooks |
void SHPAPI_CALL | SHPCloseDiskTree (SHPTreeDiskHandle hDiskTree) |
int SHPAPI_CALL1 * | SHPSearchDiskTreeEx (SHPTreeDiskHandle hDiskTree, double *padfBoundsMin, double *padfBoundsMax, int *pnShapeCount);int SHPAPI_CALL SHPWriteTreeLL(SHPTree *hTree, const char *pszFilename, SAHooks *psHooks |
SBNSearchHandle SHPAPI_CALL | SBNOpenDiskTree (const char *pszSBNFilename, SAHooks *psHooks) |
void SHPAPI_CALL | SBNCloseDiskTree (SBNSearchHandle hSBN) |
int SHPAPI_CALL1 * | SBNSearchDiskTree (SBNSearchHandle hSBN, double *padfBoundsMin, double *padfBoundsMax, int *pnShapeCount);int SHPAPI_CALL1(*) SBNSearchDiskTreeInteger(SBNSearchHandle hSBN, int bMinX, int bMinY, int bMaxX, int bMaxY, int *pnShapeCount |
void SHPAPI_CALL | SBNSearchFreeIds (int *panShapeId) |
DBFHandle SHPAPI_CALL | DBFOpen (const char *pszDBFFile, const char *pszAccess) |
DBFHandle SHPAPI_CALL | DBFOpenLL (const char *pszDBFFile, const char *pszAccess, SAHooks *psHooks) |
DBFHandle SHPAPI_CALL | DBFCreate (const char *pszDBFFile) |
DBFHandle SHPAPI_CALL | DBFCreateEx (const char *pszDBFFile, const char *pszCodePage) |
DBFHandle SHPAPI_CALL | DBFCreateLL (const char *pszDBFFile, const char *pszCodePage, SAHooks *psHooks) |
int SHPAPI_CALL | DBFGetFieldCount (DBFHandle psDBF) |
int SHPAPI_CALL | DBFGetRecordCount (DBFHandle psDBF) |
int SHPAPI_CALL | DBFAddField (DBFHandle hDBF, const char *pszFieldName, DBFFieldType eType, int nWidth, int nDecimals) |
int SHPAPI_CALL | DBFAddNativeFieldType (DBFHandle hDBF, const char *pszFieldName, char chType, int nWidth, int nDecimals) |
int SHPAPI_CALL | DBFDeleteField (DBFHandle hDBF, int iField) |
int SHPAPI_CALL | DBFReorderFields (DBFHandle psDBF, int *panMap) |
int SHPAPI_CALL | DBFAlterFieldDefn (DBFHandle psDBF, int iField, const char *pszFieldName, char chType, int nWidth, int nDecimals) |
DBFFieldType SHPAPI_CALL | DBFGetFieldInfo (DBFHandle psDBF, int iField, char *pszFieldName, int *pnWidth, int *pnDecimals) |
int SHPAPI_CALL | DBFGetFieldIndex (DBFHandle psDBF, const char *pszFieldName) |
int SHPAPI_CALL | DBFReadIntegerAttribute (DBFHandle hDBF, int iShape, int iField) |
double SHPAPI_CALL | DBFReadDoubleAttribute (DBFHandle hDBF, int iShape, int iField) |
const char SHPAPI_CALL1 * | DBFReadStringAttribute (DBFHandle hDBF, int iShape, int iField);const char SHPAPI_CALL1(*) DBFReadLogicalAttribute(DBFHandle hDBF, int iShape, int iField |
int SHPAPI_CALL | DBFIsAttributeNULL (DBFHandle hDBF, int iShape, int iField) |
int SHPAPI_CALL | DBFWriteIntegerAttribute (DBFHandle hDBF, int iShape, int iField, int nFieldValue) |
int SHPAPI_CALL | DBFWriteDoubleAttribute (DBFHandle hDBF, int iShape, int iField, double dFieldValue) |
int SHPAPI_CALL | DBFWriteStringAttribute (DBFHandle hDBF, int iShape, int iField, const char *pszFieldValue) |
int SHPAPI_CALL | DBFWriteNULLAttribute (DBFHandle hDBF, int iShape, int iField) |
int SHPAPI_CALL | DBFWriteLogicalAttribute (DBFHandle hDBF, int iShape, int iField, const char lFieldValue) |
int SHPAPI_CALL | DBFWriteAttributeDirectly (DBFHandle psDBF, int hEntity, int iField, void *pValue) |
const char SHPAPI_CALL1 * | DBFReadTuple (DBFHandle psDBF, int hEntity);int SHPAPI_CALL DBFWriteTuple(DBFHandle psDBF, int hEntity, void *pRawTuple |
int SHPAPI_CALL | DBFIsRecordDeleted (DBFHandle psDBF, int iShape) |
int SHPAPI_CALL | DBFMarkRecordDeleted (DBFHandle psDBF, int iShape, int bIsDeleted) |
DBFHandle SHPAPI_CALL | DBFCloneEmpty (DBFHandle psDBF, const char *pszFilename) |
void SHPAPI_CALL | DBFClose (DBFHandle hDBF) |
void SHPAPI_CALL | DBFUpdateHeader (DBFHandle hDBF) |
char SHPAPI_CALL | DBFGetNativeFieldType (DBFHandle hDBF, int iField) |
const char SHPAPI_CALL1 * | DBFGetCodePage (DBFHandle psDBF);void SHPAPI_CALL DBFSetLastModifiedDate(DBFHandle psDBF, int nYYSince1900, int nMM, int nDD |
void SHPAPI_CALL | DBFSetWriteEndOfFileChar (DBFHandle psDBF, int bWriteFlag) |
#define DISABLE_MULTIPATCH_MEASURE |
Definition at line 67 of file shapefil.h.
Referenced by SHPWriteObject().
#define MAX_DEFAULT_TREE_DEPTH 12 |
Definition at line 333 of file shapefil.h.
#define MAX_SUBNODE 4 |
Definition at line 330 of file shapefil.h.
#define SHP_CVSID | ( | string | ) |
Definition at line 125 of file shapefil.h.
#define SHPAPI_CALL |
Definition at line 108 of file shapefil.h.
Referenced by DBFAddField(), DBFAddNativeFieldType(), DBFAlterFieldDefn(), DBFCloneEmpty(), DBFClose(), DBFCreate(), DBFCreateEx(), DBFCreateLL(), DBFDeleteField(), DBFGetFieldCount(), DBFGetFieldIndex(), DBFGetFieldInfo(), DBFGetNativeFieldType(), DBFGetRecordCount(), DBFIsAttributeNULL(), DBFIsRecordDeleted(), DBFMarkRecordDeleted(), DBFOpen(), DBFOpenLL(), DBFReadDoubleAttribute(), DBFReadIntegerAttribute(), DBFReadStringAttribute(), DBFReadTuple(), DBFReorderFields(), DBFSetLastModifiedDate(), DBFSetWriteEndOfFileChar(), DBFUpdateHeader(), DBFWriteAttributeDirectly(), DBFWriteDoubleAttribute(), DBFWriteIntegerAttribute(), DBFWriteLogicalAttribute(), DBFWriteNULLAttribute(), DBFWriteStringAttribute(), DBFWriteTuple(), SBNCloseDiskTree(), SBNOpenDiskTree(), SBNSearchFreeIds(), SHPClose(), SHPCloseDiskTree(), SHPComputeExtents(), SHPCreate(), SHPCreateLL(), SHPCreateTree(), SHPDestroyObject(), SHPGetInfo(), SHPOpen(), SHPOpenLL(), SHPOpenLLEx(), SHPRestoreSHX(), SHPRewindObject(), SHPRewindObject(), SHPSearchDiskTree(), SHPSearchDiskTreeEx(), SHPSetFastModeReadObject(), SHPTreeAddShapeId(), SHPTreeFindLikelyShapes(), SHPTreeRemoveShapeId(), SHPTreeTrimExtraNodes(), SHPWriteHeader(), SHPWriteObject(), and SHPWriteTree().
#define SHPAPI_CALL1 | ( | x | ) |
Definition at line 113 of file shapefil.h.
Referenced by DBFReadStringAttribute(), DBFReadTuple(), SBNSearchDiskTree(), SHPCreateObject(), SHPRewindObject(), SHPSearchDiskTree(), SHPSearchDiskTreeEx(), and SHPTreeFindLikelyShapes().
#define SHPP_FIRSTRING 4 |
Definition at line 236 of file shapefil.h.
Referenced by SHPPartTypeName().
#define SHPP_INNERRING 3 |
Definition at line 235 of file shapefil.h.
Referenced by SHPPartTypeName().
#define SHPP_OUTERRING 2 |
Definition at line 234 of file shapefil.h.
Referenced by SHPPartTypeName().
#define SHPP_RING 5 |
Definition at line 237 of file shapefil.h.
Referenced by if(), and SHPPartTypeName().
#define SHPP_TRIFAN 1 |
Definition at line 233 of file shapefil.h.
Referenced by SHPPartTypeName().
#define SHPP_TRISTRIP 0 |
Definition at line 232 of file shapefil.h.
Referenced by SHPPartTypeName().
#define SHPT_ARC 3 |
Definition at line 214 of file shapefil.h.
Referenced by if(), SHPTypeName(), and SHPWriteObject().
#define SHPT_ARCM 23 |
Definition at line 222 of file shapefil.h.
Referenced by if(), if(), SHPTypeName(), and SHPWriteObject().
#define SHPT_ARCZ 13 |
Definition at line 218 of file shapefil.h.
Referenced by if(), SHPTypeName(), and SHPWriteObject().
#define SHPT_MULTIPATCH 31 |
Definition at line 225 of file shapefil.h.
Referenced by if(), SHPTypeName(), and SHPWriteObject().
#define SHPT_MULTIPOINT 8 |
Definition at line 216 of file shapefil.h.
Referenced by SHPTypeName(), and SHPWriteObject().
#define SHPT_MULTIPOINTM 28 |
Definition at line 224 of file shapefil.h.
Referenced by if(), SHPTypeName(), and SHPWriteObject().
#define SHPT_MULTIPOINTZ 18 |
Definition at line 220 of file shapefil.h.
Referenced by SHPTypeName(), and SHPWriteObject().
#define SHPT_NULL 0 |
Definition at line 212 of file shapefil.h.
Referenced by SHPTypeName(), and SHPWriteObject().
#define SHPT_POINT 1 |
Definition at line 213 of file shapefil.h.
Referenced by SHPTypeName(), and SHPWriteObject().
#define SHPT_POINTM 21 |
Definition at line 221 of file shapefil.h.
Referenced by if(), SHPTypeName(), and SHPWriteObject().
#define SHPT_POINTZ 11 |
Definition at line 217 of file shapefil.h.
Referenced by SHPTypeName(), and SHPWriteObject().
#define SHPT_POLYGON 5 |
Definition at line 215 of file shapefil.h.
Referenced by if(), SHPRewindObject(), SHPTypeName(), and SHPWriteObject().
#define SHPT_POLYGONM 25 |
Definition at line 223 of file shapefil.h.
Referenced by if(), if(), SHPRewindObject(), SHPTypeName(), and SHPWriteObject().
#define SHPT_POLYGONZ 15 |
Definition at line 219 of file shapefil.h.
Referenced by if(), SHPRewindObject(), SHPTypeName(), and SHPWriteObject().
#define TRIM_DBF_WHITESPACE |
Definition at line 60 of file shapefil.h.
#define XBASE_FLD_MAX_WIDTH 255 |
Definition at line 484 of file shapefil.h.
Referenced by DBFAddNativeFieldType(), and DBFAlterFieldDefn().
#define XBASE_FLDHDR_SZ 32 |
Definition at line 478 of file shapefil.h.
Referenced by DBFAddNativeFieldType(), DBFAlterFieldDefn(), DBFCloneEmpty(), DBFGetFieldInfo(), DBFOpenLL(), and DBFReorderFields().
#define XBASE_FLDNAME_LEN_READ 11 |
Definition at line 480 of file shapefil.h.
Referenced by DBFGetFieldIndex(), and DBFGetFieldInfo().
#define XBASE_FLDNAME_LEN_WRITE 10 |
Definition at line 482 of file shapefil.h.
Referenced by DBFAddNativeFieldType(), and DBFAlterFieldDefn().
Definition at line 466 of file shapefil.h.
typedef int* SAFile |
Definition at line 148 of file shapefil.h.
typedef unsigned long SAOffset |
Definition at line 151 of file shapefil.h.
typedef struct SBNSearchInfo* SBNSearchHandle |
Definition at line 400 of file shapefil.h.
Definition at line 207 of file shapefil.h.
typedef struct tagSHPObject SHPObject |
Definition at line 176 of file shapefil.h.
typedef struct shape_tree_node SHPTreeNode |
enum DBFFieldType |
Enumerator | |
---|---|
FTString | |
FTInteger | |
FTDouble | |
FTLogical | |
FTDate | |
FTInvalid |
Definition at line 468 of file shapefil.h.
int SHPAPI_CALL DBFAddField | ( | DBFHandle | hDBF, |
const char * | pszFieldName, | ||
DBFFieldType | eType, | ||
int | nWidth, | ||
int | nDecimals ) |
Definition at line 748 of file dbfopen.c.
References DBFAddNativeFieldType(), FTDate, FTLogical, FTString, and SHPAPI_CALL.
int SHPAPI_CALL DBFAddNativeFieldType | ( | DBFHandle | hDBF, |
const char * | pszFieldName, | ||
char | chType, | ||
int | nWidth, | ||
int | nDecimals ) |
Definition at line 792 of file dbfopen.c.
References DBFInfo::bCurrentRecordModified, DBFInfo::bNoHeader, DBFInfo::bUpdated, DBFInfo::bWriteEndOfFileChar, DBFUpdateHeader(), END_OF_FILE_CHARACTER, SAHooks::Error, FALSE, DBFInfo::fp, SAHooks::FRead, SAHooks::FSeek, SAHooks::FWrite, DBFInfo::nCurrentRecord, DBFInfo::nFields, DBFInfo::nHeaderLength, DBFInfo::nRecordLength, DBFInfo::nRecords, DBFInfo::pachFieldType, DBFInfo::panFieldDecimals, DBFInfo::panFieldOffset, DBFInfo::panFieldSize, DBFInfo::pszCurrentRecord, DBFInfo::pszHeader, DBFInfo::sHooks, SHPAPI_CALL, STATIC_CAST, TRUE, XBASE_FLD_MAX_WIDTH, XBASE_FLDHDR_SZ, and XBASE_FLDNAME_LEN_WRITE.
Referenced by DBFAddField().
int SHPAPI_CALL DBFAlterFieldDefn | ( | DBFHandle | psDBF, |
int | iField, | ||
const char * | pszFieldName, | ||
char | chType, | ||
int | nWidth, | ||
int | nDecimals ) |
Definition at line 1989 of file dbfopen.c.
References DBFInfo::bCurrentRecordModified, DBFInfo::bNoHeader, DBFInfo::bUpdated, DBFInfo::bWriteEndOfFileChar, DBFUpdateHeader(), END_OF_FILE_CHARACTER, FALSE, DBFInfo::fp, SAHooks::FRead, SAHooks::FSeek, SAHooks::FWrite, DBFInfo::nCurrentRecord, DBFInfo::nFields, DBFInfo::nHeaderLength, DBFInfo::nRecordLength, DBFInfo::nRecords, DBFInfo::pachFieldType, DBFInfo::panFieldDecimals, DBFInfo::panFieldOffset, DBFInfo::panFieldSize, DBFInfo::pszCurrentRecord, DBFInfo::pszHeader, DBFInfo::sHooks, SHPAPI_CALL, STATIC_CAST, TRUE, XBASE_FLD_MAX_WIDTH, XBASE_FLDHDR_SZ, and XBASE_FLDNAME_LEN_WRITE.
DBFHandle SHPAPI_CALL DBFCloneEmpty | ( | DBFHandle | psDBF, |
const char * | pszFilename ) |
Definition at line 1574 of file dbfopen.c.
References DBFInfo::bNoHeader, DBFInfo::bUpdated, DBFInfo::bWriteEndOfFileChar, DBFClose(), DBFCreateEx(), DBFOpen(), DBFInfo::nFields, DBFInfo::nHeaderLength, DBFInfo::nRecordLength, DBFInfo::pachFieldType, DBFInfo::panFieldDecimals, DBFInfo::panFieldOffset, DBFInfo::panFieldSize, DBFInfo::pszCodePage, DBFInfo::pszHeader, SHPAPI_CALL, SHPLIB_NULLPTR, STATIC_CAST, TRUE, and XBASE_FLDHDR_SZ.
Referenced by DBFReadTuple().
void SHPAPI_CALL DBFClose | ( | DBFHandle | hDBF | ) |
Definition at line 572 of file dbfopen.c.
References DBFInfo::bNoHeader, DBFInfo::bUpdated, CPL_IGNORE_RET_VAL_INT, DBFUpdateHeader(), SAHooks::FClose, DBFInfo::fp, DBFInfo::pachFieldType, DBFInfo::panFieldDecimals, DBFInfo::panFieldOffset, DBFInfo::panFieldSize, DBFInfo::pszCodePage, DBFInfo::pszCurrentRecord, DBFInfo::pszHeader, DBFInfo::pszWorkField, DBFInfo::sHooks, SHPAPI_CALL, and SHPLIB_NULLPTR.
Referenced by DBFCloneEmpty(), DBFOpenLL(), and DBFReadTuple().
DBFHandle SHPAPI_CALL DBFCreate | ( | const char * | pszDBFFile | ) |
Definition at line 620 of file dbfopen.c.
References DBFCreateEx(), and SHPAPI_CALL.
DBFHandle SHPAPI_CALL DBFCreateEx | ( | const char * | pszDBFFile, |
const char * | pszCodePage ) |
Definition at line 631 of file dbfopen.c.
References DBFCreateLL(), SASetupDefaultHooks(), and SHPAPI_CALL.
Referenced by DBFCloneEmpty(), and DBFCreate().
DBFHandle SHPAPI_CALL DBFCreateLL | ( | const char * | pszDBFFile, |
const char * | pszCodePage, | ||
SAHooks * | psHooks ) |
Definition at line 647 of file dbfopen.c.
References DBFInfo::bCurrentRecordModified, DBFInfo::bNoHeader, DBFInfo::bRequireNextWriteSeek, CONST_CAST, DBFSetLastModifiedDate(), DBFSetWriteEndOfFileChar(), FALSE, SAHooks::FClose, SAHooks::FOpen, DBFInfo::fp, SAHooks::FWrite, DBFInfo::iLanguageDriver, DBFInfo::nCurrentRecord, DBFInfo::nFields, DBFInfo::nHeaderLength, DBFInfo::nRecordLength, DBFInfo::nRecords, DBFInfo::pachFieldType, DBFInfo::panFieldDecimals, DBFInfo::panFieldOffset, DBFInfo::panFieldSize, DBFInfo::pszCodePage, DBFInfo::pszCurrentRecord, DBFInfo::pszHeader, SAHooks::Remove, DBFInfo::sHooks, SHPAPI_CALL, SHPLIB_NULLPTR, STATIC_CAST, strcpy, TRUE, and XBASE_FILEHDR_SZ.
Referenced by DBFCreateEx().
int SHPAPI_CALL DBFDeleteField | ( | DBFHandle | hDBF, |
int | iField ) |
References SHPAPI_CALL.
const char SHPAPI_CALL1 * DBFGetCodePage | ( | DBFHandle | psDBF | ) |
Definition at line 1730 of file dbfopen.c.
References DBFGetCodePage(), and SHPLIB_NULLPTR.
Referenced by DBFGetCodePage(), and DBFReadTuple().
int SHPAPI_CALL DBFGetFieldCount | ( | DBFHandle | psDBF | ) |
Definition at line 1174 of file dbfopen.c.
References DBFInfo::nFields, and SHPAPI_CALL.
Referenced by DBFGetFieldIndex().
int SHPAPI_CALL DBFGetFieldIndex | ( | DBFHandle | psDBF, |
const char * | pszFieldName ) |
Definition at line 1649 of file dbfopen.c.
References DBFGetFieldCount(), DBFGetFieldInfo(), name, SHPAPI_CALL, SHPLIB_NULLPTR, STRCASECMP, and XBASE_FLDNAME_LEN_READ.
DBFFieldType SHPAPI_CALL DBFGetFieldInfo | ( | DBFHandle | psDBF, |
int | iField, | ||
char * | pszFieldName, | ||
int * | pnWidth, | ||
int * | pnDecimals ) |
Definition at line 1200 of file dbfopen.c.
References FTDate, FTDouble, FTInteger, FTInvalid, FTLogical, FTString, DBFInfo::nFields, DBFInfo::pachFieldType, DBFInfo::panFieldDecimals, DBFInfo::panFieldSize, DBFInfo::pszHeader, SHPAPI_CALL, SHPLIB_NULLPTR, STATIC_CAST, XBASE_FLDHDR_SZ, and XBASE_FLDNAME_LEN_READ.
Referenced by DBFGetFieldIndex().
char SHPAPI_CALL DBFGetNativeFieldType | ( | DBFHandle | hDBF, |
int | iField ) |
Definition at line 1632 of file dbfopen.c.
References DBFInfo::pachFieldType, and SHPAPI_CALL.
Referenced by DBFReadTuple().
int SHPAPI_CALL DBFGetRecordCount | ( | DBFHandle | psDBF | ) |
Definition at line 1186 of file dbfopen.c.
References DBFInfo::nRecords, and SHPAPI_CALL.
int SHPAPI_CALL DBFIsAttributeNULL | ( | DBFHandle | hDBF, |
int | iShape, | ||
int | iField ) |
Definition at line 1158 of file dbfopen.c.
References DBFReadStringAttribute(), DBFInfo::pachFieldType, SHPAPI_CALL, SHPLIB_NULLPTR, and TRUE.
Referenced by DBFReadStringAttribute().
int SHPAPI_CALL DBFIsRecordDeleted | ( | DBFHandle | psDBF, |
int | iShape ) |
Definition at line 1668 of file dbfopen.c.
References FALSE, DBFInfo::nRecords, DBFInfo::pszCurrentRecord, SHPAPI_CALL, and TRUE.
Referenced by DBFReadTuple().
int SHPAPI_CALL DBFMarkRecordDeleted | ( | DBFHandle | psDBF, |
int | iShape, | ||
int | bIsDeleted ) |
Definition at line 1692 of file dbfopen.c.
References DBFInfo::bCurrentRecordModified, DBFInfo::bUpdated, FALSE, DBFInfo::nRecords, DBFInfo::pszCurrentRecord, SHPAPI_CALL, and TRUE.
Referenced by DBFReadTuple().
DBFHandle SHPAPI_CALL DBFOpen | ( | const char * | pszDBFFile, |
const char * | pszAccess ) |
Definition at line 346 of file dbfopen.c.
References DBFOpenLL(), SASetupDefaultHooks(), and SHPAPI_CALL.
Referenced by DBFCloneEmpty().
DBFHandle SHPAPI_CALL DBFOpenLL | ( | const char * | pszDBFFile, |
const char * | pszAccess, | ||
SAHooks * | psHooks ) |
Definition at line 378 of file dbfopen.c.
References DBFInfo::bCurrentRecordModified, DBFInfo::bNoHeader, DBFInfo::bRequireNextWriteSeek, DBFClose(), DBFSetLastModifiedDate(), DBFSetWriteEndOfFileChar(), FALSE, SAHooks::FClose, SAHooks::FOpen, DBFInfo::fp, SAHooks::FRead, SAHooks::FSeek, HEADER_RECORD_TERMINATOR, DBFInfo::iLanguageDriver, DBFInfo::nCurrentRecord, DBFInfo::nFields, DBFInfo::nHeaderLength, DBFInfo::nRecordLength, DBFInfo::nRecords, DBFInfo::pachFieldType, DBFInfo::panFieldDecimals, DBFInfo::panFieldOffset, DBFInfo::panFieldSize, DBFInfo::pszCodePage, DBFInfo::pszCurrentRecord, DBFInfo::pszHeader, REINTERPRET_CAST, DBFInfo::sHooks, SHPAPI_CALL, SHPLIB_NULLPTR, STATIC_CAST, strcpy, TRUE, XBASE_FILEHDR_SZ, and XBASE_FLDHDR_SZ.
Referenced by DBFOpen().
double SHPAPI_CALL DBFReadDoubleAttribute | ( | DBFHandle | hDBF, |
int | iShape, | ||
int | iField ) |
Definition at line 1068 of file dbfopen.c.
References SHPAPI_CALL, SHPLIB_NULLPTR, and STATIC_CAST.
int SHPAPI_CALL DBFReadIntegerAttribute | ( | DBFHandle | hDBF, |
int | iShape, | ||
int | iField ) |
Definition at line 1050 of file dbfopen.c.
References SHPAPI_CALL, SHPLIB_NULLPTR, and STATIC_CAST.
const char SHPAPI_CALL1 * DBFReadStringAttribute | ( | DBFHandle | hDBF, |
int | iShape, | ||
int | iField ) const |
const char SHPAPI_CALL1 * DBFReadTuple | ( | DBFHandle | psDBF, |
int | hEntity ) |
int SHPAPI_CALL DBFReorderFields | ( | DBFHandle | psDBF, |
int * | panMap ) |
Definition at line 1869 of file dbfopen.c.
References DBFInfo::bCurrentRecordModified, DBFInfo::bNoHeader, DBFInfo::bUpdated, DBFUpdateHeader(), FALSE, DBFInfo::fp, SAHooks::FRead, SAHooks::FSeek, SAHooks::FWrite, DBFInfo::nCurrentRecord, DBFInfo::nFields, DBFInfo::nHeaderLength, DBFInfo::nRecordLength, DBFInfo::nRecords, DBFInfo::pachFieldType, DBFInfo::panFieldDecimals, DBFInfo::panFieldOffset, DBFInfo::panFieldSize, DBFInfo::pszHeader, DBFInfo::sHooks, SHPAPI_CALL, STATIC_CAST, TRUE, and XBASE_FLDHDR_SZ.
void SHPAPI_CALL DBFSetWriteEndOfFileChar | ( | DBFHandle | psDBF, |
int | bWriteFlag ) |
Definition at line 2228 of file dbfopen.c.
References DBFInfo::bWriteEndOfFileChar, and SHPAPI_CALL.
Referenced by DBFCreateLL(), DBFOpenLL(), and DBFReadTuple().
void SHPAPI_CALL DBFUpdateHeader | ( | DBFHandle | hDBF | ) |
Definition at line 298 of file dbfopen.c.
References DBFInfo::bNoHeader, SAHooks::FFlush, DBFInfo::fp, SAHooks::FRead, SAHooks::FSeek, SAHooks::FWrite, DBFInfo::nRecords, DBFInfo::nUpdateDay, DBFInfo::nUpdateMonth, DBFInfo::nUpdateYearSince1900, DBFInfo::sHooks, SHPAPI_CALL, STATIC_CAST, and XBASE_FILEHDR_SZ.
Referenced by DBFAddNativeFieldType(), DBFAlterFieldDefn(), DBFClose(), DBFReadTuple(), and DBFReorderFields().
int SHPAPI_CALL DBFWriteAttributeDirectly | ( | DBFHandle | psDBF, |
int | hEntity, | ||
int | iField, | ||
void * | pValue ) |
Definition at line 1372 of file dbfopen.c.
References DBFInfo::bCurrentRecordModified, DBFInfo::bNoHeader, DBFInfo::bUpdated, FALSE, DBFInfo::nCurrentRecord, DBFInfo::nRecordLength, DBFInfo::nRecords, DBFInfo::panFieldOffset, DBFInfo::panFieldSize, DBFInfo::pszCurrentRecord, REINTERPRET_CAST, SHPAPI_CALL, STATIC_CAST, and TRUE.
Referenced by DBFReadStringAttribute().
int SHPAPI_CALL DBFWriteDoubleAttribute | ( | DBFHandle | hDBF, |
int | iShape, | ||
int | iField, | ||
double | dFieldValue ) |
Definition at line 1436 of file dbfopen.c.
References SHPAPI_CALL, and STATIC_CAST.
Referenced by DBFReadStringAttribute().
int SHPAPI_CALL DBFWriteIntegerAttribute | ( | DBFHandle | hDBF, |
int | iShape, | ||
int | iField, | ||
int | nFieldValue ) |
Definition at line 1449 of file dbfopen.c.
References SHPAPI_CALL, and STATIC_CAST.
Referenced by DBFReadStringAttribute().
int SHPAPI_CALL DBFWriteLogicalAttribute | ( | DBFHandle | hDBF, |
int | iShape, | ||
int | iField, | ||
const char | lFieldValue ) |
Definition at line 1491 of file dbfopen.c.
References CONST_CAST, SHPAPI_CALL, and STATIC_CAST.
Referenced by DBFReadStringAttribute().
int SHPAPI_CALL DBFWriteNULLAttribute | ( | DBFHandle | hDBF, |
int | iShape, | ||
int | iField ) |
Definition at line 1479 of file dbfopen.c.
References SHPAPI_CALL, and SHPLIB_NULLPTR.
Referenced by DBFReadStringAttribute().
int SHPAPI_CALL DBFWriteStringAttribute | ( | DBFHandle | hDBF, |
int | iShape, | ||
int | iField, | ||
const char * | pszFieldValue ) |
Definition at line 1464 of file dbfopen.c.
References CONST_CAST, SHPAPI_CALL, and STATIC_CAST.
Referenced by DBFReadStringAttribute().
void SHPAPI_CALL SASetupDefaultHooks | ( | SAHooks * | psHooks | ) |
Definition at line 183 of file safileio.c.
References SAHooks::Atof, SAHooks::Error, SAHooks::FClose, SAHooks::FFlush, SAHooks::FOpen, SAHooks::FRead, SAHooks::FSeek, SAHooks::FTell, SAHooks::FWrite, SAHooks::Remove, SADError(), SADFClose(), SADFFlush(), SADFOpen(), SADFRead(), SADFSeek(), SADFTell(), SADFWrite(), and SADRemove().
Referenced by DBFCreateEx(), DBFOpen(), SHPCreate(), and SHPOpen().
void SHPAPI_CALL SBNCloseDiskTree | ( | SBNSearchHandle | hSBN | ) |
References SBNCloseDiskTree(), and SHPAPI_CALL.
Referenced by SBNCloseDiskTree().
SBNSearchHandle SHPAPI_CALL SBNOpenDiskTree | ( | const char * | pszSBNFilename, |
SAHooks * | psHooks ) |
References SBNOpenDiskTree(), and SHPAPI_CALL.
Referenced by SBNOpenDiskTree().
int SHPAPI_CALL1 * SBNSearchDiskTree | ( | SBNSearchHandle | hSBN, |
double * | padfBoundsMin, | ||
double * | padfBoundsMax, | ||
int * | pnShapeCount ) |
References SBNSearchDiskTree(), and SHPAPI_CALL1.
Referenced by SBNSearchDiskTree().
void SHPAPI_CALL SBNSearchFreeIds | ( | int * | panShapeId | ) |
References SBNSearchFreeIds(), and SHPAPI_CALL.
Referenced by SBNSearchFreeIds().
void SHPAPI_CALL SHPClose | ( | SHPHandle | hSHP | ) |
Definition at line 852 of file shpopen.c.
References SHPInfo::bUpdated, SAHooks::FClose, SHPInfo::fpSHP, SHPInfo::fpSHX, SHPInfo::pabyObjectBuf, SHPInfo::pabyRec, SHPInfo::panRecOffset, SHPInfo::panRecSize, SHPInfo::psCachedObject, SHPInfo::sHooks, SHPAPI_CALL, SHPLIB_NULLPTR, and SHPWriteHeader().
Referenced by SHPOpenLL(), and SHPRewindObject().
void SHPAPI_CALL SHPCloseDiskTree | ( | SHPTreeDiskHandle | hDiskTree | ) |
References SHPAPI_CALL, and SHPCloseDiskTree().
Referenced by SHPCloseDiskTree().
void SHPAPI_CALL SHPComputeExtents | ( | SHPObject * | psObject | ) |
Definition at line 1117 of file shpopen.c.
References tagSHPObject::dfMMax, tagSHPObject::dfMMin, tagSHPObject::dfXMax, tagSHPObject::dfXMin, tagSHPObject::dfYMax, tagSHPObject::dfYMin, tagSHPObject::dfZMax, tagSHPObject::dfZMin, MAX, MIN, tagSHPObject::nVertices, tagSHPObject::padfM, tagSHPObject::padfX, tagSHPObject::padfY, tagSHPObject::padfZ, and SHPAPI_CALL.
SHPHandle SHPAPI_CALL SHPCreate | ( | const char * | pszShapeFile, |
int | nShapeType ) |
Definition at line 944 of file shpopen.c.
References SASetupDefaultHooks(), SHPAPI_CALL, and SHPCreateLL().
SHPHandle SHPAPI_CALL SHPCreateLL | ( | const char * | pszShapeFile, |
int | nShapeType, | ||
SAHooks * | psHooks ) |
Definition at line 960 of file shpopen.c.
References ByteCopy, SAHooks::Error, SAHooks::FClose, SAHooks::FOpen, SAHooks::FWrite, NULL, SHPAPI_CALL, SHPLIB_NULLPTR, SHPOpenLL(), and STATIC_CAST.
Referenced by SHPCreate().
SHPObject SHPAPI_CALL1 * SHPCreateObject | ( | int | nSHPType, |
int | nShapeId, | ||
int | nParts, | ||
const int * | panPartStart, | ||
const int * | panPartType, | ||
int | nVertices, | ||
const double * | padfX, | ||
const double * | padfY, | ||
const double * | padfZ, | ||
const double * | padfM ) const |
References nShapeId, nSHPType, nVertices, SHPAPI_CALL1, SHPCreateObject(), and SHPCreateSimpleObject().
Referenced by SHPCreateObject(), and SHPCreateObject().
SHPTree SHPAPI_CALL1 * SHPCreateTree | ( | SHPHandle | hSHP, |
int | nDimension, | ||
int | nMaxDepth, | ||
double * | padfBoundsMin, | ||
double * | padfBoundsMax ) |
References SHPAPI_CALL, and SHPCreateTree().
Referenced by SHPCreateTree().
void SHPAPI_CALL SHPDestroyObject | ( | SHPObject * | psObject | ) |
Definition at line 2611 of file shpopen.c.
References tagSHPObject::bFastModeReadObject, FALSE, tagSHPObject::padfM, tagSHPObject::padfX, tagSHPObject::padfY, tagSHPObject::padfZ, tagSHPObject::panPartStart, tagSHPObject::panPartType, SHPAPI_CALL, and SHPLIB_NULLPTR.
Referenced by if().
void SHPAPI_CALL SHPGetInfo | ( | SHPHandle | hSHP, |
int * | pnEntities, | ||
int * | pnShapeType, | ||
double * | padfMinBound, | ||
double * | padfMaxBound ) |
Definition at line 917 of file shpopen.c.
References SHPInfo::adBoundsMax, SHPInfo::adBoundsMin, SHPInfo::nRecords, SHPInfo::nShapeType, SHPAPI_CALL, and SHPLIB_NULLPTR.
SHPHandle SHPAPI_CALL SHPOpen | ( | const char * | pszShapeFile, |
const char * | pszAccess ) |
Definition at line 289 of file shpopen.c.
References SASetupDefaultHooks(), SHPAPI_CALL, and SHPOpenLL().
SHPHandle SHPAPI_CALL SHPOpenLL | ( | const char * | pszShapeFile, |
const char * | pszAccess, | ||
SAHooks * | psHooks ) |
Definition at line 321 of file shpopen.c.
References SHPInfo::adBoundsMax, SHPInfo::adBoundsMin, SHPInfo::bUpdated, SAHooks::Error, FALSE, SAHooks::FClose, SAHooks::FOpen, SHPInfo::fpSHP, SHPInfo::fpSHX, SAHooks::FRead, SAHooks::FSeek, SAHooks::FTell, MAX, SHPInfo::nFileSize, SHPInfo::nMaxRecords, SHPInfo::nRecords, SHPInfo::nShapeType, SHPInfo::panRecOffset, SHPInfo::panRecSize, SHPInfo::sHooks, SHPAPI_CALL, SHPClose(), SHPLIB_NULLPTR, and STATIC_CAST.
Referenced by SHPCreateLL(), SHPOpen(), and SHPOpenLLEx().
SHPHandle SHPAPI_CALL SHPOpenLLEx | ( | const char * | pszShapeFile, |
const char * | pszAccess, | ||
SAHooks * | psHooks, | ||
int | bRestoreSHX ) |
Definition at line 659 of file shpopen.c.
References SHPAPI_CALL, SHPLIB_NULLPTR, SHPOpenLL(), and SHPRestoreSHX().
SHPObject SHPAPI_CALL1 * SHPReadObject | ( | SHPHandle | hSHP, |
int | iShape ) |
Definition at line 1761 of file shpopen.c.
References if(), SHPLIB_NULLPTR, SHPReadObject(), and STATIC_CAST.
Referenced by SHPReadObject().
int SHPAPI_CALL SHPRestoreSHX | ( | const char * | pszShapeFile, |
const char * | pszAccess, | ||
SAHooks * | psHooks ) |
Definition at line 680 of file shpopen.c.
References SAHooks::Error, SAHooks::FClose, SAHooks::FOpen, SAHooks::FRead, SAHooks::FSeek, SAHooks::FWrite, SHPAPI_CALL, SHPLIB_NULLPTR, and STATIC_CAST.
Referenced by SHPOpenLLEx().
int SHPAPI_CALL SHPRewindObject | ( | SHPHandle | hSHP, |
SHPObject * | psObject ) |
References nSHPType, SHPAPI_CALL, SHPAPI_CALL1, SHPClose(), SHPPartTypeName(), SHPRewindObject(), SHPTypeName(), and SHPWriteHeader().
Referenced by SHPRewindObject().
int SHPAPI_CALL1 * SHPSearchDiskTree | ( | FILE * | fp, |
double * | padfBoundsMin, | ||
double * | padfBoundsMax, | ||
int * | pnShapeCount ) const |
References SHPAPI_CALL, SHPAPI_CALL1, and SHPSearchDiskTree().
Referenced by SHPSearchDiskTree().
int SHPAPI_CALL1 * SHPSearchDiskTreeEx | ( | SHPTreeDiskHandle | hDiskTree, |
double * | padfBoundsMin, | ||
double * | padfBoundsMax, | ||
int * | pnShapeCount ) const |
References SHPAPI_CALL, SHPAPI_CALL1, and SHPSearchDiskTreeEx().
Referenced by SHPSearchDiskTreeEx().
void SHPAPI_CALL SHPSetFastModeReadObject | ( | SHPHandle | hSHP, |
int | bFastMode ) |
Definition at line 898 of file shpopen.c.
References assert, SHPInfo::bFastModeReadObject, SHPInfo::psCachedObject, SHPAPI_CALL, SHPLIB_NULLPTR, and STATIC_CAST.
int SHPAPI_CALL SHPTreeAddShapeId | ( | SHPTree * | hTree, |
SHPObject * | psObject ) |
References SHPAPI_CALL, and SHPTreeAddShapeId().
Referenced by SHPTreeAddShapeId().
int SHPAPI_CALL1 * SHPTreeFindLikelyShapes | ( | SHPTree * | hTree, |
double * | padfBoundsMin, | ||
double * | padfBoundsMax, | ||
int * | ) |
References SHPAPI_CALL, SHPAPI_CALL1, and SHPTreeFindLikelyShapes().
Referenced by SHPTreeFindLikelyShapes().
int SHPAPI_CALL SHPTreeRemoveShapeId | ( | SHPTree * | hTree, |
int | nShapeId ) |
References nShapeId, SHPAPI_CALL, and SHPTreeRemoveShapeId().
Referenced by SHPTreeRemoveShapeId().
void SHPAPI_CALL SHPTreeTrimExtraNodes | ( | SHPTree * | hTree | ) |
References SHPAPI_CALL, and SHPTreeTrimExtraNodes().
Referenced by SHPTreeTrimExtraNodes().
const char SHPAPI_CALL1 * SHPTypeName | ( | int | nSHPType | ) | const |
Definition at line 2527 of file shpopen.c.
References nSHPType, SHPT_ARC, SHPT_ARCM, SHPT_ARCZ, SHPT_MULTIPATCH, SHPT_MULTIPOINT, SHPT_MULTIPOINTM, SHPT_MULTIPOINTZ, SHPT_NULL, SHPT_POINT, SHPT_POINTM, SHPT_POINTZ, SHPT_POLYGON, SHPT_POLYGONM, SHPT_POLYGONZ, and SHPTypeName().
Referenced by SHPRewindObject(), and SHPTypeName().
void SHPAPI_CALL SHPWriteHeader | ( | SHPHandle | hSHP | ) |
Definition at line 142 of file shpopen.c.
References SHPInfo::adBoundsMax, SHPInfo::adBoundsMin, ByteCopy, SAHooks::Error, SAHooks::FFlush, SHPInfo::fpSHP, SHPInfo::fpSHX, SAHooks::FSeek, SAHooks::FWrite, SHPInfo::nFileSize, SHPInfo::nRecords, SHPInfo::nShapeType, SHPInfo::panRecOffset, SHPInfo::panRecSize, SHPInfo::sHooks, SHPAPI_CALL, SHPLIB_NULLPTR, and STATIC_CAST.
Referenced by SHPClose(), and SHPRewindObject().
int SHPAPI_CALL SHPWriteTree | ( | SHPTree * | hTree, |
const char * | pszFilename ) |
References SHPAPI_CALL, and SHPWriteTree().
Referenced by SHPWriteTree().