GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-36359e2344
shapefil.h File Reference
#include <stdio.h>
Include dependency graph for shapefil.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SAHooks
 
struct  SHPInfo
 
struct  SHPDate
 
struct  tagSHPObject
 
struct  shape_tree_node
 
struct  SHPTree
 
struct  DBFInfo
 

Macros

#define SHAPELIB_VERSION_MAJOR   1
 
#define SHAPELIB_VERSION_MINOR   6
 
#define SHAPELIB_VERSION_MICRO   0
 
#define SHAPELIB_MAKE_VERSION_NUMBER(major, minor, micro)    ((major) * 10000 + (minor) * 100 + (micro))
 
#define SHAPELIB_VERSION_NUMBER
 
#define SHAPELIB_AT_LEAST(major, minor, micro)
 
#define TRIM_DBF_WHITESPACE
 
#define DISABLE_MULTIPATCH_MEASURE
 
#define SHPAPI_CALL
 
#define SHPAPI_CALL1(x)   x SHPAPI_CALL
 
#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 SHPInfoSHPHandle
 
typedef struct shape_tree_node SHPTreeNode
 
typedef struct SBNSearchInfo * SBNSearchHandle
 
typedef DBFInfoDBFHandle
 

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, const SAHooks *psHooks)
 
SHPHandle SHPAPI_CALL SHPOpenLLEx (const char *pszShapeFile, const char *pszAccess, const SAHooks *psHooks, int bRestoreSHX)
 
int SHPAPI_CALL SHPRestoreSHX (const char *pszShapeFile, const char *pszAccess, const 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, const SAHooks *psHooks)
 
void SHPAPI_CALL SHPGetInfo (const SHPHandle hSHP, int *pnEntities, int *pnShapeType, double *padfMinBound, double *padfMaxBound)
 
SHPObject SHPAPI_CALL1SHPReadObject (const SHPHandle hSHP, int iShape);int SHPAPI_CALL SHPWriteObject(SHPHandle hSHP, int iShape, const SHPObject *psObject
 
void SHPAPI_CALL SHPDestroyObject (SHPObject *psObject)
 
void SHPAPI_CALL SHPComputeExtents (SHPObject *psObject)
 
SHPObject SHPAPI_CALL1SHPCreateObject (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 (const SHPHandle hSHP, SHPObject *psObject)
 
void SHPAPI_CALL SHPClose (SHPHandle hSHP)
 
void SHPAPI_CALL SHPWriteHeader (SHPHandle hSHP)
 
const char SHPAPI_CALL1SHPTypeName (int nSHPType);const char SHPAPI_CALL1(*) SHPPartTypeName(int nPartType
 
SHPTree SHPAPI_CALL1SHPCreateTree (SHPHandle hSHP, int nDimension, int nMaxDepth, const double *padfBoundsMin, const 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)
 
void SHPAPI_CALL SHPTreeTrimExtraNodes (SHPTree *hTree)
 
int SHPAPI_CALL1SHPTreeFindLikelyShapes (const SHPTree *hTree, double *padfBoundsMin, double *padfBoundsMax, int *);int SHPAPI_CALL SHPCheckBoundsOverlap(const double *, const double *, const double *, const double *, int
 
int SHPAPI_CALL1SHPSearchDiskTree (FILE *fp, double *padfBoundsMin, double *padfBoundsMax, int *pnShapeCount);typedef struct SHPDiskTreeInfo *SHPTreeDiskHandle;SHPTreeDiskHandle SHPAPI_CALL SHPOpenDiskTree(const char *pszQIXFilename, const SAHooks *psHooks
 
void SHPAPI_CALL SHPCloseDiskTree (SHPTreeDiskHandle hDiskTree)
 
int SHPAPI_CALL1SHPSearchDiskTreeEx (const SHPTreeDiskHandle hDiskTree, double *padfBoundsMin, double *padfBoundsMax, int *pnShapeCount);int SHPAPI_CALL SHPWriteTreeLL(SHPTree *hTree, const char *pszFilename, const SAHooks *psHooks
 
SBNSearchHandle SHPAPI_CALL SBNOpenDiskTree (const char *pszSBNFilename, const SAHooks *psHooks)
 
void SHPAPI_CALL SBNCloseDiskTree (SBNSearchHandle hSBN)
 
int SHPAPI_CALL1SBNSearchDiskTree (const SBNSearchHandle hSBN, const double *padfBoundsMin, const double *padfBoundsMax, int *pnShapeCount);int SHPAPI_CALL1(*) SBNSearchDiskTreeInteger(const 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, const 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, const SAHooks *psHooks)
 
int SHPAPI_CALL DBFGetFieldCount (const DBFHandle psDBF)
 
int SHPAPI_CALL DBFGetRecordCount (const 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, const int *panMap)
 
int SHPAPI_CALL DBFAlterFieldDefn (DBFHandle psDBF, int iField, const char *pszFieldName, char chType, int nWidth, int nDecimals)
 
DBFFieldType SHPAPI_CALL DBFGetFieldInfo (const DBFHandle psDBF, int iField, char *pszFieldName, int *pnWidth, int *pnDecimals)
 
int SHPAPI_CALL DBFGetFieldIndex (const 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_CALL1DBFReadStringAttribute (DBFHandle hDBF, int iShape, int iField);const char SHPAPI_CALL1(*) DBFReadLogicalAttribute(DBFHandle hDBF, int iShape, int iField
 
SHPDate SHPAPI_CALL DBFReadDateAttribute (DBFHandle hDBF, int iShape, int iField)
 
int SHPAPI_CALL DBFIsAttributeNULL (const 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 DBFWriteDateAttribute (DBFHandle hDBF, int iShape, int iField, const SHPDate *dateFieldValue)
 
int SHPAPI_CALL DBFWriteAttributeDirectly (DBFHandle psDBF, int hEntity, int iField, const void *pValue)
 
const char SHPAPI_CALL1DBFReadTuple (DBFHandle psDBF, int hEntity);int SHPAPI_CALL DBFWriteTuple(DBFHandle psDBF, int hEntity, const void *pRawTuple
 
int SHPAPI_CALL DBFIsRecordDeleted (const DBFHandle psDBF, int iShape)
 
int SHPAPI_CALL DBFMarkRecordDeleted (DBFHandle psDBF, int iShape, int bIsDeleted)
 
DBFHandle SHPAPI_CALL DBFCloneEmpty (const DBFHandle psDBF, const char *pszFilename)
 
void SHPAPI_CALL DBFClose (DBFHandle hDBF)
 
void SHPAPI_CALL DBFUpdateHeader (DBFHandle hDBF)
 
char SHPAPI_CALL DBFGetNativeFieldType (const DBFHandle hDBF, int iField)
 
const char SHPAPI_CALL1DBFGetCodePage (const DBFHandle psDBF);void SHPAPI_CALL DBFSetLastModifiedDate(DBFHandle psDBF, int nYYSince1900, int nMM, int nDD
 
void SHPAPI_CALL DBFSetWriteEndOfFileChar (DBFHandle psDBF, int bWriteFlag)
 

Macro Definition Documentation

◆ DISABLE_MULTIPATCH_MEASURE

#define DISABLE_MULTIPATCH_MEASURE

Definition at line 64 of file shapefil.h.

◆ MAX_DEFAULT_TREE_DEPTH

#define MAX_DEFAULT_TREE_DEPTH   12

Definition at line 324 of file shapefil.h.

◆ MAX_SUBNODE

#define MAX_SUBNODE   4

Definition at line 321 of file shapefil.h.

◆ SHAPELIB_AT_LEAST

#define SHAPELIB_AT_LEAST (   major,
  minor,
  micro 
)
Value:
SHAPELIB_MAKE_VERSION_NUMBER(major, minor, micro))
#define SHAPELIB_VERSION_NUMBER
Definition: shapefil.h:40

Definition at line 45 of file shapefil.h.

◆ SHAPELIB_MAKE_VERSION_NUMBER

#define SHAPELIB_MAKE_VERSION_NUMBER (   major,
  minor,
  micro 
)     ((major) * 10000 + (minor) * 100 + (micro))

Definition at line 37 of file shapefil.h.

◆ SHAPELIB_VERSION_MAJOR

#define SHAPELIB_VERSION_MAJOR   1

Definition at line 33 of file shapefil.h.

◆ SHAPELIB_VERSION_MICRO

#define SHAPELIB_VERSION_MICRO   0

Definition at line 35 of file shapefil.h.

◆ SHAPELIB_VERSION_MINOR

#define SHAPELIB_VERSION_MINOR   6

Definition at line 34 of file shapefil.h.

◆ SHAPELIB_VERSION_NUMBER

#define SHAPELIB_VERSION_NUMBER
Value:
#define SHAPELIB_MAKE_VERSION_NUMBER(major, minor, micro)
Definition: shapefil.h:37
#define SHAPELIB_VERSION_MINOR
Definition: shapefil.h:34
#define SHAPELIB_VERSION_MICRO
Definition: shapefil.h:35
#define SHAPELIB_VERSION_MAJOR
Definition: shapefil.h:33

Definition at line 40 of file shapefil.h.

◆ SHPAPI_CALL

#define SHPAPI_CALL

Definition at line 105 of file shapefil.h.

◆ SHPAPI_CALL1

#define SHPAPI_CALL1 (   x)    x SHPAPI_CALL

Definition at line 110 of file shapefil.h.

◆ SHPP_FIRSTRING

#define SHPP_FIRSTRING   4

Definition at line 225 of file shapefil.h.

◆ SHPP_INNERRING

#define SHPP_INNERRING   3

Definition at line 224 of file shapefil.h.

◆ SHPP_OUTERRING

#define SHPP_OUTERRING   2

Definition at line 223 of file shapefil.h.

◆ SHPP_RING

#define SHPP_RING   5

Definition at line 226 of file shapefil.h.

◆ SHPP_TRIFAN

#define SHPP_TRIFAN   1

Definition at line 222 of file shapefil.h.

◆ SHPP_TRISTRIP

#define SHPP_TRISTRIP   0

Definition at line 221 of file shapefil.h.

◆ SHPT_ARC

#define SHPT_ARC   3

Definition at line 203 of file shapefil.h.

◆ SHPT_ARCM

#define SHPT_ARCM   23

Definition at line 211 of file shapefil.h.

◆ SHPT_ARCZ

#define SHPT_ARCZ   13

Definition at line 207 of file shapefil.h.

◆ SHPT_MULTIPATCH

#define SHPT_MULTIPATCH   31

Definition at line 214 of file shapefil.h.

◆ SHPT_MULTIPOINT

#define SHPT_MULTIPOINT   8

Definition at line 205 of file shapefil.h.

◆ SHPT_MULTIPOINTM

#define SHPT_MULTIPOINTM   28

Definition at line 213 of file shapefil.h.

◆ SHPT_MULTIPOINTZ

#define SHPT_MULTIPOINTZ   18

Definition at line 209 of file shapefil.h.

◆ SHPT_NULL

#define SHPT_NULL   0

Definition at line 201 of file shapefil.h.

◆ SHPT_POINT

#define SHPT_POINT   1

Definition at line 202 of file shapefil.h.

◆ SHPT_POINTM

#define SHPT_POINTM   21

Definition at line 210 of file shapefil.h.

◆ SHPT_POINTZ

#define SHPT_POINTZ   11

Definition at line 206 of file shapefil.h.

◆ SHPT_POLYGON

#define SHPT_POLYGON   5

Definition at line 204 of file shapefil.h.

◆ SHPT_POLYGONM

#define SHPT_POLYGONM   25

Definition at line 212 of file shapefil.h.

◆ SHPT_POLYGONZ

#define SHPT_POLYGONZ   15

Definition at line 208 of file shapefil.h.

◆ TRIM_DBF_WHITESPACE

#define TRIM_DBF_WHITESPACE

Definition at line 57 of file shapefil.h.

◆ XBASE_FLD_MAX_WIDTH

#define XBASE_FLD_MAX_WIDTH   255

Definition at line 475 of file shapefil.h.

◆ XBASE_FLDHDR_SZ

#define XBASE_FLDHDR_SZ   32

Definition at line 469 of file shapefil.h.

◆ XBASE_FLDNAME_LEN_READ

#define XBASE_FLDNAME_LEN_READ   11

Definition at line 471 of file shapefil.h.

◆ XBASE_FLDNAME_LEN_WRITE

#define XBASE_FLDNAME_LEN_WRITE   10

Definition at line 473 of file shapefil.h.

Typedef Documentation

◆ DBFHandle

typedef DBFInfo* DBFHandle

Definition at line 457 of file shapefil.h.

◆ SAFile

typedef int* SAFile

Definition at line 125 of file shapefil.h.

◆ SAOffset

typedef unsigned long SAOffset

Definition at line 131 of file shapefil.h.

◆ SBNSearchHandle

typedef struct SBNSearchInfo* SBNSearchHandle

Definition at line 391 of file shapefil.h.

◆ SHPHandle

typedef SHPInfo* SHPHandle

Definition at line 190 of file shapefil.h.

◆ SHPObject

typedef struct tagSHPObject SHPObject

Definition at line 151 of file shapefil.h.

◆ SHPTreeNode

typedef struct shape_tree_node SHPTreeNode

Enumeration Type Documentation

◆ DBFFieldType

Enumerator
FTString 
FTInteger 
FTDouble 
FTLogical 
FTDate 
FTInvalid 

Definition at line 459 of file shapefil.h.

Function Documentation

◆ DBFAddField()

int SHPAPI_CALL DBFAddField ( DBFHandle  hDBF,
const char *  pszFieldName,
DBFFieldType  eType,
int  nWidth,
int  nDecimals 
)

Definition at line 690 of file dbfopen.c.

References DBFAddNativeFieldType(), FTDate, FTLogical, and FTString.

◆ DBFAddNativeFieldType()

int SHPAPI_CALL DBFAddNativeFieldType ( DBFHandle  hDBF,
const char *  pszFieldName,
char  chType,
int  nWidth,
int  nDecimals 
)

Definition at line 734 of file dbfopen.c.

Referenced by DBFAddField().

◆ DBFAlterFieldDefn()

int SHPAPI_CALL DBFAlterFieldDefn ( DBFHandle  psDBF,
int  iField,
const char *  pszFieldName,
char  chType,
int  nWidth,
int  nDecimals 
)

Definition at line 1995 of file dbfopen.c.

References FALSE, and DBFInfo::nFields.

◆ DBFCloneEmpty()

◆ DBFClose()

void SHPAPI_CALL DBFClose ( DBFHandle  hDBF)

Definition at line 522 of file dbfopen.c.

References DBFInfo::bNoHeader, and SHPLIB_NULLPTR.

◆ DBFCreate()

DBFHandle SHPAPI_CALL DBFCreate ( const char *  pszDBFFile)

Definition at line 570 of file dbfopen.c.

References DBFCreateEx().

◆ DBFCreateEx()

DBFHandle SHPAPI_CALL DBFCreateEx ( const char *  pszDBFFile,
const char *  pszCodePage 
)

Definition at line 581 of file dbfopen.c.

References DBFCreateLL(), and SASetupDefaultHooks().

Referenced by DBFCreate().

◆ DBFCreateLL()

DBFHandle SHPAPI_CALL DBFCreateLL ( const char *  pszDBFFile,
const char *  pszCodePage,
const SAHooks psHooks 
)

Definition at line 597 of file dbfopen.c.

Referenced by DBFCloneEmpty(), and DBFCreateEx().

◆ DBFDeleteField()

int SHPAPI_CALL DBFDeleteField ( DBFHandle  hDBF,
int  iField 
)

◆ DBFGetCodePage()

const char SHPAPI_CALL1* DBFGetCodePage ( const DBFHandle  psDBF)

Definition at line 1737 of file dbfopen.c.

References SHPLIB_NULLPTR.

◆ DBFGetFieldCount()

int SHPAPI_CALL DBFGetFieldCount ( const DBFHandle  psDBF)

Definition at line 1152 of file dbfopen.c.

References DBFInfo::nFields.

Referenced by DBFGetFieldIndex().

◆ DBFGetFieldIndex()

int SHPAPI_CALL DBFGetFieldIndex ( const DBFHandle  psDBF,
const char *  pszFieldName 
)

◆ DBFGetFieldInfo()

DBFFieldType SHPAPI_CALL DBFGetFieldInfo ( const DBFHandle  psDBF,
int  iField,
char *  pszFieldName,
int *  pnWidth,
int *  pnDecimals 
)

◆ DBFGetNativeFieldType()

char SHPAPI_CALL DBFGetNativeFieldType ( const DBFHandle  hDBF,
int  iField 
)

Definition at line 1639 of file dbfopen.c.

References DBFInfo::pachFieldType.

◆ DBFGetRecordCount()

int SHPAPI_CALL DBFGetRecordCount ( const DBFHandle  psDBF)

Definition at line 1163 of file dbfopen.c.

References DBFInfo::nRecords.

◆ DBFIsAttributeNULL()

int SHPAPI_CALL DBFIsAttributeNULL ( const DBFHandle  hDBF,
int  iShape,
int  iField 
)

Definition at line 1135 of file dbfopen.c.

References DBFReadStringAttribute(), SHPLIB_NULLPTR, and TRUE.

◆ DBFIsRecordDeleted()

int SHPAPI_CALL DBFIsRecordDeleted ( const DBFHandle  psDBF,
int  iShape 
)

Definition at line 1675 of file dbfopen.c.

References DBFInfo::nRecords, and TRUE.

◆ DBFMarkRecordDeleted()

int SHPAPI_CALL DBFMarkRecordDeleted ( DBFHandle  psDBF,
int  iShape,
int  bIsDeleted 
)

Definition at line 1699 of file dbfopen.c.

References FALSE, and DBFInfo::nRecords.

◆ DBFOpen()

DBFHandle SHPAPI_CALL DBFOpen ( const char *  pszDBFFile,
const char *  pszAccess 
)

Definition at line 296 of file dbfopen.c.

References DBFOpenLL(), and SASetupDefaultHooks().

◆ DBFOpenLL()

DBFHandle SHPAPI_CALL DBFOpenLL ( const char *  pszDBFFile,
const char *  pszAccess,
const SAHooks psHooks 
)

Definition at line 327 of file dbfopen.c.

References SHPLIB_NULLPTR.

Referenced by DBFOpen().

◆ DBFReadDateAttribute()

SHPDate SHPAPI_CALL DBFReadDateAttribute ( DBFHandle  hDBF,
int  iShape,
int  iField 
)

Definition at line 1053 of file dbfopen.c.

References STATIC_CAST.

◆ DBFReadDoubleAttribute()

double SHPAPI_CALL DBFReadDoubleAttribute ( DBFHandle  hDBF,
int  iShape,
int  iField 
)

Definition at line 1009 of file dbfopen.c.

References STATIC_CAST.

◆ DBFReadIntegerAttribute()

int SHPAPI_CALL DBFReadIntegerAttribute ( DBFHandle  hDBF,
int  iShape,
int  iField 
)

Definition at line 991 of file dbfopen.c.

References STATIC_CAST.

◆ DBFReadStringAttribute()

const char SHPAPI_CALL1* DBFReadStringAttribute ( DBFHandle  hDBF,
int  iShape,
int  iField 
) const

◆ DBFReadTuple()

const char SHPAPI_CALL1* DBFReadTuple ( DBFHandle  psDBF,
int  hEntity 
) const

◆ DBFReorderFields()

int SHPAPI_CALL DBFReorderFields ( DBFHandle  psDBF,
const int *  panMap 
)

Definition at line 1875 of file dbfopen.c.

References DBFInfo::nFields, and TRUE.

◆ DBFSetWriteEndOfFileChar()

void SHPAPI_CALL DBFSetWriteEndOfFileChar ( DBFHandle  psDBF,
int  bWriteFlag 
)

Definition at line 2232 of file dbfopen.c.

References DBFInfo::bWriteEndOfFileChar.

◆ DBFUpdateHeader()

void SHPAPI_CALL DBFUpdateHeader ( DBFHandle  hDBF)

Definition at line 248 of file dbfopen.c.

References DBFInfo::bNoHeader.

◆ DBFWriteAttributeDirectly()

int SHPAPI_CALL DBFWriteAttributeDirectly ( DBFHandle  psDBF,
int  hEntity,
int  iField,
const void *  pValue 
)

Definition at line 1350 of file dbfopen.c.

References DBFInfo::bNoHeader, FALSE, and DBFInfo::nRecords.

Referenced by DBFWriteDateAttribute().

◆ DBFWriteDateAttribute()

int SHPAPI_CALL DBFWriteDateAttribute ( DBFHandle  hDBF,
int  iShape,
int  iField,
const SHPDate dateFieldValue 
)

◆ DBFWriteDoubleAttribute()

int SHPAPI_CALL DBFWriteDoubleAttribute ( DBFHandle  hDBF,
int  iShape,
int  iField,
double  dFieldValue 
)

Definition at line 1419 of file dbfopen.c.

◆ DBFWriteIntegerAttribute()

int SHPAPI_CALL DBFWriteIntegerAttribute ( DBFHandle  hDBF,
int  iShape,
int  iField,
int  nFieldValue 
)

Definition at line 1432 of file dbfopen.c.

◆ DBFWriteLogicalAttribute()

int SHPAPI_CALL DBFWriteLogicalAttribute ( DBFHandle  hDBF,
int  iShape,
int  iField,
const char  lFieldValue 
)

Definition at line 1472 of file dbfopen.c.

◆ DBFWriteNULLAttribute()

int SHPAPI_CALL DBFWriteNULLAttribute ( DBFHandle  hDBF,
int  iShape,
int  iField 
)

Definition at line 1461 of file dbfopen.c.

◆ DBFWriteStringAttribute()

int SHPAPI_CALL DBFWriteStringAttribute ( DBFHandle  hDBF,
int  iShape,
int  iField,
const char *  pszFieldValue 
)

Definition at line 1447 of file dbfopen.c.

◆ SASetupDefaultHooks()

void SHPAPI_CALL SASetupDefaultHooks ( SAHooks psHooks)

Definition at line 90 of file safileio.c.

References SAHooks::FOpen.

Referenced by DBFCreateEx(), DBFOpen(), SHPCreate(), and SHPOpen().

◆ SBNCloseDiskTree()

void SHPAPI_CALL SBNCloseDiskTree ( SBNSearchHandle  hSBN)

◆ SBNOpenDiskTree()

SBNSearchHandle SHPAPI_CALL SBNOpenDiskTree ( const char *  pszSBNFilename,
const SAHooks psHooks 
)

◆ SBNSearchDiskTree()

int SHPAPI_CALL1* SBNSearchDiskTree ( const SBNSearchHandle  hSBN,
const double *  padfBoundsMin,
const double *  padfBoundsMax,
int *  pnShapeCount 
) const

◆ SBNSearchFreeIds()

void SHPAPI_CALL SBNSearchFreeIds ( int *  panShapeId)

◆ SHPClose()

◆ SHPCloseDiskTree()

void SHPAPI_CALL SHPCloseDiskTree ( SHPTreeDiskHandle  hDiskTree)

◆ SHPComputeExtents()

◆ SHPCreate()

SHPHandle SHPAPI_CALL SHPCreate ( const char *  pszShapeFile,
int  nShapeType 
)

Definition at line 914 of file shpopen.c.

References SASetupDefaultHooks(), and SHPCreateLL().

◆ SHPCreateLL()

SHPHandle SHPAPI_CALL SHPCreateLL ( const char *  pszShapeFile,
int  nShapeType,
const SAHooks psHooks 
)

Definition at line 930 of file shpopen.c.

Referenced by SHPCreate().

◆ SHPCreateObject()

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

◆ SHPCreateTree()

SHPTree SHPAPI_CALL1* SHPCreateTree ( SHPHandle  hSHP,
int  nDimension,
int  nMaxDepth,
const double *  padfBoundsMin,
const double *  padfBoundsMax 
)

◆ SHPDestroyObject()

◆ SHPGetInfo()

void SHPAPI_CALL SHPGetInfo ( const SHPHandle  hSHP,
int *  pnEntities,
int *  pnShapeType,
double *  padfMinBound,
double *  padfMaxBound 
)

◆ SHPOpen()

SHPHandle SHPAPI_CALL SHPOpen ( const char *  pszShapeFile,
const char *  pszAccess 
)

Definition at line 213 of file shpopen.c.

References SASetupDefaultHooks(), and SHPOpenLL().

◆ SHPOpenLL()

SHPHandle SHPAPI_CALL SHPOpenLL ( const char *  pszShapeFile,
const char *  pszAccess,
const SAHooks psHooks 
)

Definition at line 245 of file shpopen.c.

References SHPInfo::bUpdated, FALSE, SHPInfo::sHooks, SHPLIB_NULLPTR, and STATIC_CAST.

Referenced by SHPOpen(), and SHPOpenLLEx().

◆ SHPOpenLLEx()

SHPHandle SHPAPI_CALL SHPOpenLLEx ( const char *  pszShapeFile,
const char *  pszAccess,
const SAHooks psHooks,
int  bRestoreSHX 
)

Definition at line 586 of file shpopen.c.

References SHPLIB_NULLPTR, SHPOpenLL(), and SHPRestoreSHX().

◆ SHPReadObject()

SHPObject SHPAPI_CALL1* SHPReadObject ( const SHPHandle  hSHP,
int  iShape 
) const

Definition at line 1785 of file shpopen.c.

References SHP_SWAP32, SHPLIB_NULLPTR, and STATIC_CAST.

◆ SHPRestoreSHX()

int SHPAPI_CALL SHPRestoreSHX ( const char *  pszShapeFile,
const char *  pszAccess,
const SAHooks psHooks 
)

Definition at line 607 of file shpopen.c.

Referenced by SHPOpenLLEx().

◆ SHPRewindObject()

◆ SHPSearchDiskTree()

int SHPAPI_CALL1* SHPSearchDiskTree ( FILE *  fp,
double *  padfBoundsMin,
double *  padfBoundsMax,
int *  pnShapeCount 
) const

◆ SHPSearchDiskTreeEx()

int SHPAPI_CALL1* SHPSearchDiskTreeEx ( const SHPTreeDiskHandle  hDiskTree,
double *  padfBoundsMin,
double *  padfBoundsMax,
int *  pnShapeCount 
) const

◆ SHPSetFastModeReadObject()

void SHPAPI_CALL SHPSetFastModeReadObject ( SHPHandle  hSHP,
int  bFastMode 
)

◆ SHPTreeAddShapeId()

int SHPAPI_CALL SHPTreeAddShapeId ( SHPTree hTree,
SHPObject psObject 
)

◆ SHPTreeFindLikelyShapes()

int SHPAPI_CALL1* SHPTreeFindLikelyShapes ( const SHPTree hTree,
double *  padfBoundsMin,
double *  padfBoundsMax,
int *   
) const

◆ SHPTreeTrimExtraNodes()

void SHPAPI_CALL SHPTreeTrimExtraNodes ( SHPTree hTree)

◆ SHPTypeName()

◆ SHPWriteHeader()

◆ SHPWriteTree()

int SHPAPI_CALL SHPWriteTree ( SHPTree hTree,
const char *  pszFilename 
)