GRASS 8 Programmer's Manual 8.5.0RC1(2026)-3334b87d9c
Loading...
Searching...
No Matches
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   2
#define SHAPELIB_MAKE_VERSION_NUMBER(major, minor, 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)
#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 SHPDiskTreeInfo * SHPTreeDiskHandle
typedef struct SBNSearchInfo * SBNSearchHandle
typedef struct DBFInfo DBFInfo
typedef struct DBFInfoDBFHandle

Enumerations

enum  DBFFieldType {
  FTString , FTInteger , FTDouble , FTLogical ,
  FTDate , FTInvalid
}

Functions

void SASetupDefaultHooks (SAHooks *psHooks)
SHPHandle SHPOpen (const char *pszShapeFile, const char *pszAccess)
SHPHandle SHPOpenLL (const char *pszShapeFile, const char *pszAccess, const SAHooks *psHooks)
SHPHandle SHPOpenLLEx (const char *pszShapeFile, const char *pszAccess, const SAHooks *psHooks, int bRestoreSHX)
int SHPRestoreSHX (const char *pszShapeFile, const char *pszAccess, const SAHooks *psHooks)
void SHPSetFastModeReadObject (SHPHandle hSHP, int bFastMode)
SHPHandle SHPCreate (const char *pszShapeFile, int nShapeType)
SHPHandle SHPCreateLL (const char *pszShapeFile, int nShapeType, const SAHooks *psHooks)
void SHPGetInfo (const SHPHandle hSHP, int *pnEntities, int *pnShapeType, double *padfMinBound, double *padfMaxBound)
SHPObjectSHPReadObject (const SHPHandle hSHP, int iShape)
int SHPWriteObject (SHPHandle hSHP, int iShape, const SHPObject *psObject)
void SHPDestroyObject (SHPObject *psObject)
void SHPComputeExtents (SHPObject *psObject)
SHPObjectSHPCreateObject (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)
SHPObjectSHPCreateSimpleObject (int nSHPType, int nVertices, const double *padfX, const double *padfY, const double *padfZ)
int SHPRewindObject (const SHPHandle hSHP, SHPObject *psObject)
void SHPClose (SHPHandle hSHP)
void SHPWriteHeader (SHPHandle hSHP)
const char * SHPTypeName (int nSHPType)
const char * SHPPartTypeName (int nPartType)
SHPTreeSHPCreateTree (SHPHandle hSHP, int nDimension, int nMaxDepth, const double *padfBoundsMin, const double *padfBoundsMax)
void SHPDestroyTree (SHPTree *hTree)
int SHPWriteTree (SHPTree *hTree, const char *pszFilename)
int SHPTreeAddShapeId (SHPTree *hTree, SHPObject *psObject)
void SHPTreeTrimExtraNodes (SHPTree *hTree)
int * SHPTreeFindLikelyShapes (const SHPTree *hTree, double *padfBoundsMin, double *padfBoundsMax, int *)
int SHPCheckBoundsOverlap (const double *, const double *, const double *, const double *, int)
int * SHPSearchDiskTree (FILE *fp, double *padfBoundsMin, double *padfBoundsMax, int *pnShapeCount)
SHPTreeDiskHandle SHPOpenDiskTree (const char *pszQIXFilename, const SAHooks *psHooks)
void SHPCloseDiskTree (SHPTreeDiskHandle hDiskTree)
int * SHPSearchDiskTreeEx (const SHPTreeDiskHandle hDiskTree, double *padfBoundsMin, double *padfBoundsMax, int *pnShapeCount)
int SHPWriteTreeLL (SHPTree *hTree, const char *pszFilename, const SAHooks *psHooks)
SBNSearchHandle SBNOpenDiskTree (const char *pszSBNFilename, const SAHooks *psHooks)
void SBNCloseDiskTree (SBNSearchHandle hSBN)
int * SBNSearchDiskTree (const SBNSearchHandle hSBN, const double *padfBoundsMin, const double *padfBoundsMax, int *pnShapeCount)
int * SBNSearchDiskTreeInteger (const SBNSearchHandle hSBN, int bMinX, int bMinY, int bMaxX, int bMaxY, int *pnShapeCount)
void SBNSearchFreeIds (int *panShapeId)
DBFHandle DBFOpen (const char *pszDBFFile, const char *pszAccess)
DBFHandle DBFOpenLL (const char *pszDBFFile, const char *pszAccess, const SAHooks *psHooks)
DBFHandle DBFCreate (const char *pszDBFFile)
DBFHandle DBFCreateEx (const char *pszDBFFile, const char *pszCodePage)
DBFHandle DBFCreateLL (const char *pszDBFFile, const char *pszCodePage, const SAHooks *psHooks)
int DBFGetFieldCount (const DBFHandle psDBF)
int DBFGetRecordCount (const DBFHandle psDBF)
int DBFAddField (DBFHandle hDBF, const char *pszFieldName, DBFFieldType eType, int nWidth, int nDecimals)
int DBFAddNativeFieldType (DBFHandle hDBF, const char *pszFieldName, char chType, int nWidth, int nDecimals)
int DBFDeleteField (DBFHandle hDBF, int iField)
int DBFReorderFields (DBFHandle psDBF, const int *panMap)
int DBFAlterFieldDefn (DBFHandle psDBF, int iField, const char *pszFieldName, char chType, int nWidth, int nDecimals)
DBFFieldType DBFGetFieldInfo (const DBFHandle psDBF, int iField, char *pszFieldName, int *pnWidth, int *pnDecimals)
int DBFGetFieldIndex (const DBFHandle psDBF, const char *pszFieldName)
int DBFReadIntegerAttribute (DBFHandle hDBF, int iShape, int iField)
double DBFReadDoubleAttribute (DBFHandle hDBF, int iShape, int iField)
const char * DBFReadStringAttribute (DBFHandle hDBF, int iShape, int iField)
const char * DBFReadLogicalAttribute (DBFHandle hDBF, int iShape, int iField)
SHPDate DBFReadDateAttribute (DBFHandle hDBF, int iShape, int iField)
int DBFIsAttributeNULL (const DBFHandle hDBF, int iShape, int iField)
int DBFWriteIntegerAttribute (DBFHandle hDBF, int iShape, int iField, int nFieldValue)
int DBFWriteDoubleAttribute (DBFHandle hDBF, int iShape, int iField, double dFieldValue)
int DBFWriteStringAttribute (DBFHandle hDBF, int iShape, int iField, const char *pszFieldValue)
int DBFWriteNULLAttribute (DBFHandle hDBF, int iShape, int iField)
int DBFWriteLogicalAttribute (DBFHandle hDBF, int iShape, int iField, const char lFieldValue)
int DBFWriteDateAttribute (DBFHandle hDBF, int iShape, int iField, const SHPDate *dateFieldValue)
int DBFWriteAttributeDirectly (DBFHandle psDBF, int hEntity, int iField, const void *pValue)
const char * DBFReadTuple (DBFHandle psDBF, int hEntity)
int DBFWriteTuple (DBFHandle psDBF, int hEntity, const void *pRawTuple)
int DBFIsRecordDeleted (const DBFHandle psDBF, int iShape)
int DBFMarkRecordDeleted (DBFHandle psDBF, int iShape, int bIsDeleted)
DBFHandle DBFCloneEmpty (const DBFHandle psDBF, const char *pszFilename)
void DBFClose (DBFHandle hDBF)
void DBFUpdateHeader (DBFHandle hDBF)
char DBFGetNativeFieldType (const DBFHandle hDBF, int iField)
const char * DBFGetCodePage (const DBFHandle psDBF)
void DBFSetLastModifiedDate (DBFHandle psDBF, int nYYSince1900, int nMM, int nDD)
void DBFSetWriteEndOfFileChar (DBFHandle psDBF, int bWriteFlag)

Macro Definition Documentation

◆ DISABLE_MULTIPATCH_MEASURE

#define DISABLE_MULTIPATCH_MEASURE

Definition at line 64 of file shapefil.h.

Referenced by SHPWriteObject().

◆ 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 )
Value:
((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   2

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

◆ SHPAPI_CALL1

#define SHPAPI_CALL1 ( x)
Value:
#define SHPAPI_CALL
Definition shapefil.h:105
#define x

Definition at line 110 of file shapefil.h.

Referenced by SBNCloseDiskTree(), SBNSearchDiskTree(), SHPCloseDiskTree(), SHPSearchDiskTree(), and SHPTreeTrimExtraNodes().

◆ SHPP_FIRSTRING

#define SHPP_FIRSTRING   4

Definition at line 225 of file shapefil.h.

Referenced by SHPPartTypeName().

◆ SHPP_INNERRING

#define SHPP_INNERRING   3

Definition at line 224 of file shapefil.h.

Referenced by SHPPartTypeName().

◆ SHPP_OUTERRING

#define SHPP_OUTERRING   2

Definition at line 223 of file shapefil.h.

Referenced by SHPPartTypeName().

◆ SHPP_RING

#define SHPP_RING   5

Definition at line 226 of file shapefil.h.

Referenced by SHPCreateObject(), and SHPPartTypeName().

◆ SHPP_TRIFAN

#define SHPP_TRIFAN   1

Definition at line 222 of file shapefil.h.

Referenced by SHPPartTypeName().

◆ SHPP_TRISTRIP

#define SHPP_TRISTRIP   0

Definition at line 221 of file shapefil.h.

Referenced by SHPPartTypeName().

◆ SHPT_ARC

#define SHPT_ARC   3

Definition at line 203 of file shapefil.h.

Referenced by SHPCreateObject(), SHPRestoreSHX(), SHPTypeName(), and SHPWriteObject().

◆ SHPT_ARCM

#define SHPT_ARCM   23

Definition at line 211 of file shapefil.h.

Referenced by SHPCreateObject(), SHPRestoreSHX(), SHPTypeName(), and SHPWriteObject().

◆ SHPT_ARCZ

#define SHPT_ARCZ   13

Definition at line 207 of file shapefil.h.

Referenced by SHPCreateObject(), SHPRestoreSHX(), SHPTypeName(), and SHPWriteObject().

◆ SHPT_MULTIPATCH

#define SHPT_MULTIPATCH   31

Definition at line 214 of file shapefil.h.

Referenced by SHPCreateObject(), SHPRestoreSHX(), SHPTypeName(), and SHPWriteObject().

◆ SHPT_MULTIPOINT

#define SHPT_MULTIPOINT   8

Definition at line 205 of file shapefil.h.

Referenced by SHPRestoreSHX(), SHPTypeName(), and SHPWriteObject().

◆ SHPT_MULTIPOINTM

#define SHPT_MULTIPOINTM   28

Definition at line 213 of file shapefil.h.

Referenced by SHPCreateObject(), SHPRestoreSHX(), SHPTypeName(), and SHPWriteObject().

◆ SHPT_MULTIPOINTZ

#define SHPT_MULTIPOINTZ   18

Definition at line 209 of file shapefil.h.

Referenced by SHPCreateObject(), SHPRestoreSHX(), SHPTypeName(), and SHPWriteObject().

◆ SHPT_NULL

#define SHPT_NULL   0

Definition at line 201 of file shapefil.h.

Referenced by SHPRestoreSHX(), SHPTypeName(), and SHPWriteObject().

◆ SHPT_POINT

#define SHPT_POINT   1

Definition at line 202 of file shapefil.h.

Referenced by SHPRestoreSHX(), SHPTypeName(), and SHPWriteObject().

◆ SHPT_POINTM

#define SHPT_POINTM   21

Definition at line 210 of file shapefil.h.

Referenced by SHPCreateObject(), SHPRestoreSHX(), SHPTypeName(), and SHPWriteObject().

◆ SHPT_POINTZ

#define SHPT_POINTZ   11

Definition at line 206 of file shapefil.h.

Referenced by SHPCreateObject(), SHPRestoreSHX(), SHPTypeName(), and SHPWriteObject().

◆ SHPT_POLYGON

#define SHPT_POLYGON   5

◆ SHPT_POLYGONM

#define SHPT_POLYGONM   25

◆ SHPT_POLYGONZ

#define SHPT_POLYGONZ   15

◆ 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.

Referenced by DBFAddNativeFieldType(), and DBFAlterFieldDefn().

◆ XBASE_FLDHDR_SZ

#define XBASE_FLDHDR_SZ   32

◆ XBASE_FLDNAME_LEN_READ

#define XBASE_FLDNAME_LEN_READ   11

Definition at line 471 of file shapefil.h.

Referenced by DBFGetFieldIndex(), and DBFGetFieldInfo().

◆ XBASE_FLDNAME_LEN_WRITE

#define XBASE_FLDNAME_LEN_WRITE   10

Definition at line 473 of file shapefil.h.

Referenced by DBFAddNativeFieldType(), and DBFAlterFieldDefn().

Typedef Documentation

◆ DBFHandle

typedef struct DBFInfo* DBFHandle

Definition at line 457 of file shapefil.h.

◆ DBFInfo

typedef struct DBFInfo DBFInfo

◆ 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 159 of file shapefil.h.

◆ SHPTreeDiskHandle

typedef struct SHPDiskTreeInfo* SHPTreeDiskHandle

Definition at line 372 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 DBFAddField ( DBFHandle hDBF,
const char * pszFieldName,
DBFFieldType eType,
int nWidth,
int nDecimals )

Definition at line 751 of file dbfopen.c.

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

◆ DBFAddNativeFieldType()

◆ DBFAlterFieldDefn()

◆ DBFCloneEmpty()

◆ DBFClose()

◆ DBFCreate()

DBFHandle DBFCreate ( const char * pszDBFFile)

Definition at line 616 of file dbfopen.c.

References DBFCreateEx(), and SHPAPI_CALL.

◆ DBFCreateEx()

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

Definition at line 627 of file dbfopen.c.

References DBFCreateLL(), SASetupDefaultHooks(), and SHPAPI_CALL.

Referenced by DBFCreate().

◆ DBFCreateLL()

◆ DBFDeleteField()

◆ DBFGetCodePage()

const char * DBFGetCodePage ( const DBFHandle psDBF)

Definition at line 1834 of file dbfopen.c.

References DBFGetCodePage(), and SHPLIB_NULLPTR.

Referenced by DBFGetCodePage().

◆ DBFGetFieldCount()

int DBFGetFieldCount ( const DBFHandle psDBF)

Definition at line 1253 of file dbfopen.c.

References DBFInfo::nFields, and SHPAPI_CALL.

Referenced by DBFGetFieldIndex().

◆ DBFGetFieldIndex()

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

◆ DBFGetFieldInfo()

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

◆ DBFGetNativeFieldType()

char DBFGetNativeFieldType ( const DBFHandle hDBF,
int iField )

Definition at line 1740 of file dbfopen.c.

References DBFInfo::pachFieldType, and SHPAPI_CALL.

◆ DBFGetRecordCount()

int DBFGetRecordCount ( const DBFHandle psDBF)

Definition at line 1264 of file dbfopen.c.

References DBFInfo::nRecords, and SHPAPI_CALL.

◆ DBFIsAttributeNULL()

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

◆ DBFIsRecordDeleted()

int DBFIsRecordDeleted ( const DBFHandle psDBF,
int iShape )

Definition at line 1776 of file dbfopen.c.

References FALSE, DBFInfo::nRecords, DBFInfo::pszCurrentRecord, SHPAPI_CALL, and TRUE.

◆ DBFMarkRecordDeleted()

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

◆ DBFOpen()

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

Definition at line 300 of file dbfopen.c.

References DBFOpenLL(), SASetupDefaultHooks(), and SHPAPI_CALL.

Referenced by DBFCloneEmpty().

◆ DBFOpenLL()

◆ DBFReadDateAttribute()

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

◆ DBFReadDoubleAttribute()

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

Definition at line 1102 of file dbfopen.c.

References SHPAPI_CALL, SHPLIB_NULLPTR, and STATIC_CAST.

◆ DBFReadIntegerAttribute()

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

Definition at line 1084 of file dbfopen.c.

References SHPAPI_CALL, SHPLIB_NULLPTR, and STATIC_CAST.

◆ DBFReadLogicalAttribute()

const char * DBFReadLogicalAttribute ( DBFHandle hDBF,
int iShape,
int iField )

Definition at line 1134 of file dbfopen.c.

References DBFReadLogicalAttribute(), and STATIC_CAST.

Referenced by DBFReadLogicalAttribute().

◆ DBFReadStringAttribute()

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

Definition at line 1121 of file dbfopen.c.

References DBFReadStringAttribute(), and STATIC_CAST.

Referenced by DBFIsAttributeNULL(), and DBFReadStringAttribute().

◆ DBFReadTuple()

const char * DBFReadTuple ( DBFHandle psDBF,
int hEntity )

Definition at line 1662 of file dbfopen.c.

References DBFReadTuple(), SHPLIB_NULLPTR, and STATIC_CAST.

Referenced by DBFReadTuple().

◆ DBFReorderFields()

◆ DBFSetLastModifiedDate()

void DBFSetLastModifiedDate ( DBFHandle psDBF,
int nYYSince1900,
int nMM,
int nDD )

◆ DBFSetWriteEndOfFileChar()

void DBFSetWriteEndOfFileChar ( DBFHandle psDBF,
int bWriteFlag )

Definition at line 2357 of file dbfopen.c.

References DBFInfo::bWriteEndOfFileChar, and SHPAPI_CALL.

Referenced by DBFCreateLL(), and DBFOpenLL().

◆ DBFUpdateHeader()

◆ DBFWriteAttributeDirectly()

◆ DBFWriteDateAttribute()

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

◆ DBFWriteDoubleAttribute()

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

Definition at line 1520 of file dbfopen.c.

References SHPAPI_CALL, and STATIC_CAST.

◆ DBFWriteIntegerAttribute()

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

Definition at line 1533 of file dbfopen.c.

References SHPAPI_CALL, and STATIC_CAST.

◆ DBFWriteLogicalAttribute()

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

Definition at line 1573 of file dbfopen.c.

References CONST_CAST, SHPAPI_CALL, and STATIC_CAST.

◆ DBFWriteNULLAttribute()

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

Definition at line 1562 of file dbfopen.c.

References SHPAPI_CALL, and SHPLIB_NULLPTR.

◆ DBFWriteStringAttribute()

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

Definition at line 1548 of file dbfopen.c.

References CONST_CAST, SHPAPI_CALL, and STATIC_CAST.

◆ DBFWriteTuple()

◆ SASetupDefaultHooks()

◆ SBNCloseDiskTree()

void SBNCloseDiskTree ( SBNSearchHandle hSBN)

◆ SBNOpenDiskTree()

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

References SBNOpenDiskTree(), and SHPAPI_CALL.

Referenced by SBNOpenDiskTree().

◆ SBNSearchDiskTree()

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

References SBNSearchDiskTree(), and SHPAPI_CALL1.

Referenced by SBNSearchDiskTree().

◆ SBNSearchDiskTreeInteger()

int * SBNSearchDiskTreeInteger ( const SBNSearchHandle hSBN,
int bMinX,
int bMinY,
int bMaxX,
int bMaxY,
int * pnShapeCount )

◆ SBNSearchFreeIds()

void SBNSearchFreeIds ( int * panShapeId)

References SBNSearchFreeIds(), and SHPAPI_CALL.

Referenced by SBNSearchFreeIds().

◆ SHPCheckBoundsOverlap()

int SHPCheckBoundsOverlap ( const double * ,
const double * ,
const double * ,
const double * ,
int  )

◆ SHPClose()

◆ SHPCloseDiskTree()

void SHPCloseDiskTree ( SHPTreeDiskHandle hDiskTree)

◆ SHPComputeExtents()

◆ SHPCreate()

SHPHandle SHPCreate ( const char * pszShapeFile,
int nShapeType )

Definition at line 944 of file shpopen.c.

References SASetupDefaultHooks(), SHPAPI_CALL, and SHPCreateLL().

◆ SHPCreateLL()

◆ SHPCreateObject()

◆ SHPCreateSimpleObject()

SHPObject * SHPCreateSimpleObject ( int nSHPType,
int nVertices,
const double * padfX,
const double * padfY,
const double * padfZ )

Definition at line 1309 of file shpopen.c.

References SHPCreateObject(), SHPCreateSimpleObject(), and SHPLIB_NULLPTR.

Referenced by SHPCreateSimpleObject().

◆ SHPCreateTree()

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

References SHPCreateTree().

Referenced by SHPCreateTree().

◆ SHPDestroyObject()

◆ SHPDestroyTree()

void SHPDestroyTree ( SHPTree * hTree)

References SHPAPI_CALL, and SHPDestroyTree().

Referenced by SHPDestroyTree().

◆ SHPGetInfo()

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

◆ SHPOpen()

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

Definition at line 219 of file shpopen.c.

References SASetupDefaultHooks(), SHPAPI_CALL, and SHPOpenLL().

◆ SHPOpenDiskTree()

SHPTreeDiskHandle SHPOpenDiskTree ( const char * pszQIXFilename,
const SAHooks * psHooks )

References SHPAPI_CALL, and SHPOpenDiskTree().

Referenced by SHPOpenDiskTree().

◆ SHPOpenLL()

◆ SHPOpenLLEx()

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

Definition at line 602 of file shpopen.c.

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

◆ SHPPartTypeName()

const char * SHPPartTypeName ( int nPartType)

◆ SHPReadObject()

SHPObject * SHPReadObject ( const SHPHandle hSHP,
int iShape )

Definition at line 1852 of file shpopen.c.

References SHP_SWAP32, SHPLIB_NULLPTR, SHPReadObject(), and STATIC_CAST.

Referenced by SHPReadObject().

◆ SHPRestoreSHX()

◆ SHPRewindObject()

◆ SHPSearchDiskTree()

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

References SHPAPI_CALL1, and SHPSearchDiskTree().

Referenced by SHPSearchDiskTree().

◆ SHPSearchDiskTreeEx()

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

References SHPSearchDiskTreeEx().

Referenced by SHPSearchDiskTreeEx().

◆ SHPSetFastModeReadObject()

void SHPSetFastModeReadObject ( SHPHandle hSHP,
int bFastMode )

◆ SHPTreeAddShapeId()

int SHPTreeAddShapeId ( SHPTree * hTree,
SHPObject * psObject )

References SHPAPI_CALL, and SHPTreeAddShapeId().

Referenced by SHPTreeAddShapeId().

◆ SHPTreeFindLikelyShapes()

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

◆ SHPTreeTrimExtraNodes()

void SHPTreeTrimExtraNodes ( SHPTree * hTree)

◆ SHPTypeName()

◆ SHPWriteHeader()

◆ SHPWriteObject()

◆ SHPWriteTree()

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

References SHPAPI_CALL, and SHPWriteTree().

Referenced by SHPWriteTree().

◆ SHPWriteTreeLL()

int SHPWriteTreeLL ( SHPTree * hTree,
const char * pszFilename,
const SAHooks * psHooks )

References SHPAPI_CALL, and SHPWriteTreeLL().

Referenced by SHPWriteTreeLL().